[Issue 222] New: "Internal error: ..\ztc\cod1.c 1656" with && and ||
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 23 15:39:29 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=222
Summary: "Internal error: ..\ztc\cod1.c 1656" with && and ||
Product: D
Version: 0.161
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jarrett.billingsley at gmail.com
Try:
void f()
{
}
..
int x = 0 || f();
int y = 1 && f();
Either declaration gives the error in the message.
According to the spec, the result of && and || is void if the second operand is
void. So this isn't valid code.
--
More information about the Digitalmars-d-bugs
mailing list