Bug 3648 – ICE when invoking a function with a default struct argument

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-12-25T07:13:00Z
Last change time
2015-06-09T01:28:05Z
Assigned to
nobody
Creator
2korden

Comments

Comment #0 by 2korden — 2009-12-25T07:13:10Z
module test; struct Foo { this (int i) { } } void bar(Foo foo = Foo(42)) { } void main() { bar(); } # dmd test.d Internal error: ..\ztc\out.c 1201 I briefly recall submitting similar bug-report a few months ago, but that one got fixed IIRC. I'll add more info as I find.
Comment #1 by 2korden — 2009-12-25T07:15:59Z
*** This issue has been marked as a duplicate of issue 2935 ***