Bug 189022

Summary: [WHLSL] ParseTypeArguments calls parseExpression()
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=189029
Bug Depends on:    
Bug Blocks: 176199    

Description Myles C. Maxfield 2018-08-27 16:05:20 PDT
It calls parseConstexpr(), which calls parseTerm(), which calls parseExpression(). We don't want to allow things like

int x = 2;
vector<float, (x + 1)> v;

We need to either change how the parser works, or add validation that typeArguments can only be certain things.
Comment 1 Myles C. Maxfield 2018-10-13 15:17:36 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/84