https://issues.dlang.org/show_bug.cgi?id=22913

          Issue ID: 22913
           Summary: importC: array index expression parsed as cast
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

void fn()
{
        int a[1];
        int b = (a[0]);
}

test.c(4): Error: expression expected, not `;`
test.c(5): Error: `=`, `;` or `,` expected to end declaration instead of `}`
test.c(6): Error: found `End of File` when expecting `}` following compound
statement

new regression from https://github.com/dlang/dmd/pull/13850

--

Reply via email to