← Back to index
|
Original Bugzilla link
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
https://github.com/D-Programming-Language/dmd/commit/e2fb2c9ac6df703d96c7981233702ebb4d920198
https://github.com/D-Programming-Language/dmd/commit/48faf09fcdab6a654da8c52e4b26be32b2e5ffd1