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: | WebGPU | Assignee: | 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 | ||
Saam Barati
```
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 };
^~~~~~~~~
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
WHLSL is no longer relevant.