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

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
Add an attachment (proposed patch, testcase, etc.)

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.


AltStyle によって変換されたページ (->オリジナル) /