[Issue 22927] New: importC: 'struct already exists' with forward reference and function with same name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 25 12:08:10 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22927
Issue ID: 22927
Summary: importC: 'struct already exists' with forward
reference and function with same name
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
CC: duser at neet.fi
struct block *tmp;
struct block {};
void block(void);
void block(void){}
test.c(2): Error: struct `test.block` already exists at test.c(1). Perhaps in
another function with the same name?
--
More information about the Digitalmars-d-bugs
mailing list