Bug 177061

Summary: WSL cannot use typedefs of arrays
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, sbarati, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 176199    
Attachments:
Description Flags
the patch sbarati: review+

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