Bug 186768
Summary: | [WSL] The interpreter should detect when typedefs form a cycle | ||
---|---|---|---|
Product: | WebKit | Reporter: | Robin Morisset <rmorisset> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | mmaxfield |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Robin Morisset
```
typedef a = b;
typedef b = a;
```
currently hangs the interpreter until it has a stack overflow.
Ideally it should be detected, and give a nicer error message.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Other types too: enums, arrays, structs, etc. (I don't know how they could be circular, but we should prove that it isn't possible using any type)
Myles C. Maxfield
*** Bug 189024 has been marked as a duplicate of this bug. ***
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/116