Bug 177061 - WSL cannot use typedefs of arrays
Summary: WSL cannot use typedefs of arrays
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords: InRadar
Depends on:
Blocks: 176199
  Show dependency treegraph
 
Reported: 2017-09-17 17:20 PDT by Myles C. Maxfield
Modified: 2018-10-13 16:33 PDT (History)
3 users (show)

See Also:


Attachments
the patch (2.06 KB, patch)
2017-09-18 11:56 PDT, Filip Pizlo
saam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2017-09-17 17:20:34 PDT
function TEST_typedefArray()
{
    let program = doPrep(`
        typedef ArrayTypedef = int[2];
        int foo()
        {
            ArrayTypedef arrayTypedef;
            return arrayTypedef[0];
        }
    `);
    checkInt(program, callFunction(program, "foo", [], []), 0);
}



ERROR: intLiteralType<2> at /internal/test:2 does not have type
visitGenericLiteralType@file:///Users/litherum/src/WebKit/Tools/WebGPUShadingLanguageRI/LiteralTypeChecker.js:45:28
Comment 1 Filip Pizlo 2017-09-18 11:56:31 PDT
Created attachment 321119 [details]
the patch
Comment 2 Filip Pizlo 2017-09-18 11:57:47 PDT
Landed in https://trac.webkit.org/changeset/222172/webkit
Comment 3 Radar WebKit Bug Importer 2017-09-27 12:27:35 PDT
<rdar://problem/34693317>
Comment 4 Myles C. Maxfield 2018-10-13 16:33:37 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/127