[Issue 15843] D-type mangling used for extern(C) (extern) function declaration inside function body, on LDC, GDC, and DMD.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 16 21:53:03 UTC 2022


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
I would err on the side of this is working as intended.  Nested functions are
not compatible with C, and so should not have a C name (by declaring the
function inside main, it implicitly gets a "this" context parameter)

--


More information about the Digitalmars-d-bugs mailing list