Bug 1593 – ICE compiler crash empty return statement in function
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-10-18T17:50:00Z
Last change time
2014-02-16T15:23:45Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
s.d.hammett
Comments
Comment #0 by s.d.hammett — 2007-10-18T17:50:23Z
Following code cause dmd to crash.
struct A {
}
A MakeA() {
return ;
}
static const A aInstance = MakeA();
with dmd versions 1.015 & 1.021
Comment #1 by shro8822 — 2007-10-18T17:59:54Z
Is that the correct code? It's not a template.
(If DMD chokes it's still a bug)
Does the CTFE make a difference?
Comment #2 by s.d.hammett — 2007-10-18T18:04:54Z
yes the code is (in)correct.
I thought it was a template bug to start with, but I pared it down to above.
I missed the fact it's no longer a template... never submit a bug report after a beer.