[Issue 19545] __traits(compiles, X) false positive, further uses of X succeed but don't link

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 7 11:56:25 UTC 2019


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

--- Comment #2 from John Colvin <john.loughran.colvin at gmail.com> ---
class C()
{
    int foo() { }
}

C!() c()()
{
    return new C!()();
}

static assert(!__traits(compiles, c()));

--


More information about the Digitalmars-d-bugs mailing list