Bug 186072
Summary: | [WSL] It should be possible to chain comma operators | ||
---|---|---|---|
Product: | WebKit | Reporter: | Robin Morisset <rmorisset> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Robin Morisset
int f() {
int x;
x = 42;
x *= 2, x += 1, x *= 3;
return x;
}
fails with a parser error, yet works if either of the ',' operator are replaced by a ';'.
It should be accepted, there is no reason for chained comma operators to be refused.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/119