[Issue 23044] New: importC: comma expression with function call parsed as declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 21 23:38:35 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23044
Issue ID: 23044
Summary: importC: comma expression with function call parsed as
declaration
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC, rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
CC: duser at neet.fi
void other(int x){}
void fn()
{
int x;
other(x), x = 1;
}
test.c(5): Error: declaration `x` is already defined
test.c(4): `variable` `x` is defined here
test.c(5): Error: declaration `x` is already defined
test.c(4): `variable` `x` is defined here
--
More information about the Digitalmars-d-bugs
mailing list