D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7165 - [CTFE] ice converting null pointer to bool with constant member function
Summary: [CTFE] ice converting null pointer to bool with constant member function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2011-12-25 22:38 UTC by Denis Shelomovskii
Modified: 2011-12-28 10:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Denis Shelomovskii 2011-12-25 22:38:45 UTC
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();
---