http://d.puremagic.com/issues/show_bug.cgi?id=6732
Andrej Mitrovic <andrej.mitrov...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rejects-valid | Summary|__traits(compiles) fails on |ICE: __traits(compiles) |valid expression |fails on valid expression --- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-01-04 06:55:23 PST --- The following has now turned into an ICE (is a crash equivalent to an ICE?) in 2.057: template isDouble(T) { enum bool isDouble = __traits(hasMember, T, "x"); } void test(T)(T rhs) if (isDouble!T) { } void main() { test(4.5); } --------------------------- dmd.exe - Application Error --------------------------- The instruction at "0x00489e61" referenced memory at "0x00000000". The memory could not be "read". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------