Bug 199603 - [WHLSL] array typedef test causes us to compile a metal program with an error in it
Summary: [WHLSL] array typedef test causes us to compile a metal program with an error...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 195681
  Show dependency treegraph
 
Reported: 2019-07-08 17:55 PDT by Saam Barati
Modified: 2020-05-05 00:42 PDT (History)
6 users (show)

See Also:


Attachments

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