[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
Fri Dec 20 14:48:24 UTC 2019


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

--- Comment #3 from John Colvin <john.loughran.colvin at gmail.com> ---
(In reply to John Colvin from comment #2)
> class C()
> {
>     int foo() { }
> }
> 
> C!() c()()
> {
>     return new C!()();
> }
> 
> static assert(!__traits(compiles, c()));

not sure what this was about, maybe I pressed enter too early back then...

The original bug is still there.

--


More information about the Digitalmars-d-bugs mailing list