Bug 7162 – [CTFE] "bool || void" expression crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-12-24T04:44:00Z
Last change time
2015-06-09T05:10:44Z
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2011-12-24T04:44:57Z
--- void f() { } int g() { bool var; var || f(); // crashes dmd return 0; } enum v = g(); ---
Comment #1 by clugdbug — 2011-12-27T00:52:32Z
Related to bug 4711. If 4711 were fixed, CTFE would ICE on AndAnd expressions as well.
Comment #2 by bugzilla — 2011-12-28T10:26:37Z