extern(C++, ns)
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 14 05:40:13 PST 2016
On 01/14/2016 12:39 AM, Walter Bright wrote:
> 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.
Thanks Manu for reducing the bug!! -- Andrei
More information about the Digitalmars-d
mailing list