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())); --