[Issue 23005] New: importC: 'alignof' or 'mangleof' as member name gives redefinition error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 10 09:27:48 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23005
Issue ID: 23005
Summary: importC: 'alignof' or 'mangleof' as member name gives
redefinition 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
struct S { int alignof, mangleof; };
union U { int alignof, mangleof; };
enum E { alignof, mangleof };
test.c(1): Error: variable `test.S.alignof` `.alignof` property cannot be
redefined
test.c(1): Error: variable `test.S.mangleof` `.mangleof` property cannot be
redefined
test.c(2): Error: variable `test.U.alignof` `.alignof` property cannot be
redefined
test.c(2): Error: variable `test.U.mangleof` `.mangleof` property cannot be
redefined
test.c(3): Error: enum member `test.E.alignof` `.alignof` property cannot be
redefined
test.c(3): Error: enum member `test.E.mangleof` `.mangleof` property cannot be
redefined
--
More information about the Digitalmars-d-bugs
mailing list