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.