[Issue 6120] New: [CTFE] ICE on calling constructor of template struct with -inline.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 7 00:39:28 PDT 2011
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: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 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: -------
More information about the Digitalmars-d-bugs
mailing list