Bug 1655 – Internal error: ..\ztc\cgcod.c 1817

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-09T19:31:00Z
Last change time
2015-06-09T01:14:22Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
schveiguy

Comments

Comment #0 by schveiguy — 2007-11-09T19:31:00Z
The following code causes internal error. void f(int x) { const(char)[] blah = (x == 1 ? "hello".dup : "world"); } I think it may have something to do with the (?:) statement having both mutable and invariant args.
Comment #1 by bugzilla — 2007-12-04T23:37:25Z
Fixed dmd 2.008