June 07, 2011 [Issue 6120] New: [CTFE] ICE on calling constructor of template struct with -inline. | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: kennytm@gmail.com --- Comment #0 from kennytm@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: ------- |
June 08, 2011 [Issue 6120] [CTFE] ICE on calling constructor of template struct with -inline in function/delegate literal. | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=6120 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from kennytm@gmail.com 2011-06-08 00:37:52 PDT --- https://github.com/D-Programming-Language/dmd/commit/70cd993d596b435b8ca8e1b907bcfbe18813aeae -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation