Bug 186768

Summary: [WSL] The interpreter should detect when typedefs form a cycle
Product: WebKit Reporter: Robin Morisset <rmorisset>
Component: WebGPUAssignee: 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    

Description Robin Morisset 2018-06-18 09:01:16 PDT
```
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.
Comment 1 Myles C. Maxfield 2018-08-29 17:17:54 PDT
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)
Comment 2 Myles C. Maxfield 2018-08-29 17:18:02 PDT
*** Bug 189024 has been marked as a duplicate of this bug. ***
Comment 3 Myles C. Maxfield 2018-10-13 15:51:42 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/116