Comment #2 by verylonglogin.reg — 2012-01-01T02:20:05Z
Just a bit smaller testcase:
---
void t()() { error; }
static assert(!__traits(compiles, t!()())); // assertion fails
static if(__traits(compiles, t!()())) { } // Error: undefined identifier
---
Comment #3 by verylonglogin.reg — 2012-01-01T02:35:40Z
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
}
---
Comment #4 by john.michael.hall — 2016-04-08T12:28:00Z