[Issue 15712] extern(C) attribute inside extern(C) unittest is incorrectly ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 4 20:31:06 UTC 2022


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|extern(C) cancelling itself |extern(C) attribute inside
                   |out                         |extern(C) unittest is
                   |                            |incorrectly ignored

--- Comment #8 from Dennis <dkorpel at live.nl> ---
It turns out the parser doesn't generate an AttributeDeclaration for
extern(linkage) when it thinks it's redundant, but it's not aware that during
semantic analysis, unittests are set to extern(D).

--


More information about the Digitalmars-d-bugs mailing list