Bug 199603

Summary: [WHLSL] array typedef test causes us to compile a metal program with an error in it
Product: WebKit Reporter: Saam Barati <saam>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: dino, fpizlo, jonlee, justin_fan, mmaxfield, rmorisset
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 195681    

Description Saam Barati 2019-07-08 17:55:33 PDT
```
        typedef ArrayTypedef = int[2];
        int foo()
        {
            ArrayTypedef arrayTypedef;
            return arrayTypedef[0];
        }
```
\
program_source:549:24: error: cannot initialize a member subobject of type 'type1 *' (aka 'int *') with an lvalue of type 'type135 *' (aka 'array<int, 2> *')
type143 variable10 = { variable8, 1 };
                       ^~~~~~~~~
Comment 1 Myles C. Maxfield 2020-05-05 00:42:39 PDT
WHLSL is no longer relevant.