Bug 1437 – dmd crash: "Internal error: ..\ztc\cod4.c 357"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-08-21T16:06:00Z
Last change time
2014-02-16T15:24:16Z
Assigned to
bugzilla
Creator
spam

Comments

Comment #0 by spam — 2007-08-21T16:06:44Z
following code crashes the compiler while compiling with -O for optimization. [CODE] struct C { C copy() { C cpy; return cpy; } } void foo(C _c) { foo( _c.copy() ); } void main() { C c; foo(c); } [/CODE] crashes at least with dmd1.020 and dmd2.003. compile call: "dmd -c -O main.d" output: "Internal error: ..\ztc\cod4.c 357" PS: i know this code is producing a stack overflow on runtime but thats not the bug ;). i cant get in runtime when the compiler crashes.
Comment #1 by spam — 2007-10-06T07:00:52Z
fixed in dmd1.022 and dmd2.005