[Issue 3448] __traits(compiles) returns true for a non-compilable template instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 1 02:20:39 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3448


Denis <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg at gmail.com


--- Comment #2 from Denis <verylonglogin.reg at gmail.com> 2012-01-01 13:20:05 MSK ---
Just a bit smaller testcase:
---
void t()() { error; }

static assert(!__traits(compiles, t!()())); // assertion fails
static if(__traits(compiles, t!()())) { }   // Error: undefined identifier
---

-- 
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