[Issue 3448] __traits(compiles) not in a function returns true for a non-compilable template instantiation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 1 02:35:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3448
Denis <verylonglogin.reg at 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.reg at 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: -------
More information about the Digitalmars-d-bugs
mailing list