Bug 7165 – [CTFE] ice converting null pointer to bool with constant member function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-12-25T22:38:00Z
Last change time
2011-12-28T10:26:58Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2011-12-25T22:38:45Z
Assertion failure: 'e->type == type' on line 5553 in file 'interpret.c' --- struct S { int* ptr; bool f() const { return !!ptr; } } enum data = S().f(); ---
Comment #1 by bugzilla — 2011-12-28T10:26:58Z