Bug 189022
| Summary: | [WHLSL] ParseTypeArguments calls parseExpression() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=189029 | ||
| Bug Depends on: | |||
| Bug Blocks: | 176199 | ||
Myles C. Maxfield
It calls parseConstexpr(), which calls parseTerm(), which calls parseExpression(). We don't want to allow things like
int x = 2;
vector<float, (x + 1)> v;
We need to either change how the parser works, or add validation that typeArguments can only be certain things.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/84