D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7162 - [CTFE] "bool || void" expression crashes dmd
Summary: [CTFE] "bool || void" expression crashes dmd
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:
Depends on:
Blocks:
 
Reported: 2011-12-24 04:44 UTC by Denis Shelomovskii
Modified: 2015-06-09 05:10 UTC (History)
2 users (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-24 04:44:57 UTC
---
void f() { }

int g()
{
    bool var;
    var || f(); // crashes dmd
    return 0;
}

enum v = g();
---
Comment 1 Don 2011-12-27 00:52:32 UTC
Related to bug 4711. If 4711 were fixed, CTFE would ICE on AndAnd expressions as well.