Bug 1290 – Two ICEs, both involving real, imaginary, ? : and +=.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-06-24T14:24:00Z
Last change time
2014-02-16T15:26:04Z
Assigned to
bugzilla
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2007-06-24T14:24:17Z
I think these are both manifestations of a single error: failing to detect a type mismatch. I think I've reported before that real+=complex compiles.
They should just issue a type mismatch error.
-------
void main()
{
double a = 0;
double b = 1;
// Internal error: ..\ztc\cg87.c 3233
a += (1? b: 1+1i)*1i;
// Internal error: ..\ztc\cod2.c 1680
a += (b?1:b-1i)*1i;
}