[Issue 22913] New: importC: array index expression parsed as cast
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 23 10:45:34 UTC 2022
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: nobody at puremagic.com
Reporter: duser at neet.fi
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
--
More information about the Digitalmars-d-bugs
mailing list