Bug 10259 – ICE on invalid compile-time class instantiation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-03T16:38:00Z
Last change time
2013-11-18T17:18:58Z
Keywords
ice, pull
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2013-06-03T16:38:30Z
DMD 2.063: class D{ int x; D d = {auto x = new D(); return x;}(); } enum x = new D; /d825/f688.d(3): Error: delegate f688.D.__lambda1 function literals cannot be class members /d825/f688.d(3): Error: delegate f688.D.__lambda1 circular dependency. Functions cannot be interpreted while being compiled /d825/f688.d(3): called from here: (*_error_() { auto x = new D; return x; } )() dmd: ctfeexpr.c:354: Expression* copyLiteral(Expression*): Assertion `0' failed.
Comment #1 by henning — 2013-08-27T12:58:06Z
Comment #2 by yebblies — 2013-11-03T08:18:52Z
This bug doesn't seem to ice any more, on win32.
Comment #3 by github-bugzilla — 2013-11-18T08:42:19Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/688de327e7208f546b4d2646b21a60fd748b6363 fix Issue 10259 - ICE on invalid compile-time class instantiation