http://d.puremagic.com/issues/show_bug.cgi?id=3448
Denis <verylonglogin....@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|__traits(compiles) returns |__traits(compiles) not in a |true for a non-compilable |function returns true for a |template instantiation |non-compilable template | |instantiation --- Comment #3 from Denis <verylonglogin....@gmail.com> 2012-01-01 13:35:40 MSK --- This bug is only for `static assert/if` not in a function: --- void t()() { error; } void f() { static assert(!__traits(compiles, t!()())); // passes static if(__traits(compiles, t!()())) { } // no errors } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------