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    

Myles C. Maxfield
Reported 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.
Attachments
Myles C. Maxfield
Comment 1 2018-10-13 15:17:36 PDT
Note You need to log in before you can comment on or make changes to this bug.