[Issue 6732] ICE: __traits(compiles) fails on valid expression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 4 06:55:24 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6732
Andrej Mitrovic <andrej.mitrovich at 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.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list