[Issue 16650] Wrong mangling for extern(C++) with posix stat_t

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 9 02:07:31 PDT 2017


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

--- Comment #5 from Jacob Carlborg <doob at me.com> ---
(In reply to Vladimir Panteleev from comment #4)
> It's easy enough to test!
> 
> $ cat test.d 
> pragma(mangle, "CeciNestPasUnS")
> struct S { }
> 
> extern(C++) void fun(S* s);
> 
> pragma(msg, fun.mangleof);
> 
> $ dmd -o- test.d
> _Z3funP1S
> 
> Looks like pragma(mangle) has no effect on structs so far.

I didn't really expect it to work. Perhaps a worthwhile feature?

--


More information about the Digitalmars-d-bugs mailing list