[Issue 24280] ImportC: forward reference error when compiling multiple files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 26 18:40:32 UTC 2023


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The source of the trouble is dmd assigns each type a unique "deco" string. C
structs defined in different .c files are considered to be the same if they
have the same "deco" name. But since they are sometimes assumed to be different
types because they are in different modules, confusion appears.

Not sure how to fix it yet.

--


More information about the Digitalmars-d-bugs mailing list