Bug 199766

Summary: [WHLSL] Structs should be able to recursively point to each other
Product: WebKit Reporter: Justin Fan <justin_fan>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 195681    

Justin Fan
Reported 2019-07-12 16:11:13 PDT
This code does not compile but should. struct Foo { thread Bar* bar; int foo; } struct Bar { thread Foo* foo; int bar; } int foo() { Foo foo; Bar bar; foo.foo = 564; bar.bar = 53; return foo.bar->bar - bar.foo->foo; }
Attachments
Justin Fan
Comment 1 2019-07-12 16:11:39 PDT
When fixing this bug, make sure to update whlsl-recursive-structs.html.
Myles C. Maxfield
Comment 2 2020-05-05 00:42:34 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.