http://d.puremagic.com/issues/show_bug.cgi?id=9018
Summary: __traits(compiles, ...) is true on second check for
same incompilable code
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2012-11-13
23:22:49 MSK ---
---
template Inst(alias Template, T)
{ alias Template!T Inst; }
template Template(T)
{ enum Template = T; }
static assert(!__traits(compiles, Inst!(Template, int))); // Assert passes
static assert(!__traits(compiles, Inst!(Template, int))); // Assert fails
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------