Bug 186768 - [WSL] The interpreter should detect when typedefs form a cycle
Summary: [WSL] The interpreter should detect when typedefs form a cycle
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 189024 (view as bug list)
Depends on:
Blocks: 176199
  Show dependency treegraph
 
Reported: 2018-06-18 09:01 PDT by Robin Morisset
Modified: 2018-10-13 15:51 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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