[Issue 23002] New: importC: struct or union field with same name as type gives circular reference error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 10 09:22:43 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23002
Issue ID: 23002
Summary: importC: struct or union field with same name as type
gives circular reference error
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
typedef int x;
struct S { x x; };
union U { x x; };
test.c(2): Error: circular reference to variable `test.S.x`
test.c(3): Error: circular reference to variable `test.U.x`
--
More information about the Digitalmars-d-bugs
mailing list