[Issue 24303] anonymous struct problems when typedef'd in separate C files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 27 09:29:18 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24303

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
This is a victim of the compiler adding the missing tag name for the anonymous
struct, but generating a different name for the two definitions. The type of
the struct is keyed off of the tag name - so different tag names mean different
types.

The solution is to generate the same tag name for each. I have an idea how to
do that by making use of the typedef identifier.

--


More information about the Digitalmars-d-bugs mailing list