http://d.puremagic.com/issues/show_bug.cgi?id=10599
Summary: CTFE: assert failure interpret.c 310
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Walter Bright <[email protected]> 2013-07-10
12:00:26 PDT ---
The following:
----------------------------
struct Bug {
int val = 3.45;
}
int bug()
{
Bug p = Bug();
return 1;
}
static assert(bug());
-----------------------------
causes:
ice.d(4): Error: cannot implicitly convert expression (3.45) of type double to
int
CTFE: ErrorExp in ice.d(6)
assert interpret.c(310) 0
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------