← Back to index
|
Original Bugzilla link
Bug 3399 – Internal error: ..\ztc\out.c 1201 when invoking a function that takes a struct as a default argument
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-10-14T07:31:00Z
Last change time
2015-06-09T01:28:08Z
Assigned to
nobody
Creator
2korden
Comments
Comment #0
by 2korden — 2009-10-14T07:31:27Z
struct Test { this(int i) { } } void foo(Test test = Test(0)) { } void main() { foo(); } Output: Internal error: ..\ztc\out.c 1201
Comment #1
by clugdbug — 2009-10-14T07:45:12Z
Looks like another case of bug 2437 = bug 2935. The same root cause gives an ICE in three different places.
Comment #2
by clugdbug — 2009-10-14T07:45:46Z
No, it's the same as bug 2935. *** This issue has been marked as a duplicate of issue 2935 ***