http://d.puremagic.com/issues/show_bug.cgi?id=6120
Summary: [CTFE] ICE on calling constructor of template struct
with -inline.
Product: D
Version: D2
Platform: Other
OS/Version: Mac OS X
Status: NEW
Keywords: ice-on-valid-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2011-06-07 00:34:58 PDT ---
Test case:
-------------------
struct Bug6120(T) {
this(int x) { }
}
static assert({
auto s = Bug6120!int(0);
return true;
}());
-------------------
Error: CTFE internal error: illegal stack value ref Bug6120!(int) this = s;
, (int x = 0;
) , this
Assertion failed: (isStackValueValid(newval)), function createStackValue, file
interpret.c, line 4121.
Abort trap
-------------------
The bug does not appear in 2.052, nor without -inline.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------