extern(C++, ns)

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 13 21:39:52 PST 2016


On 1/13/2016 5:33 PM, Manu via Digitalmars-d wrote:
> I managed to quickly reduce to this point again:
>
> module m.x;
> alias X2 = X;
> extern (C++, ns) struct X {}
>
> Error: undefined identifier 'X'


It's a bug. Thanks for finding and posting it.

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

As a workaround for the moment, you can either move the alias past the extern, 
or qualify X with ns.X.


More information about the Digitalmars-d mailing list