D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3399 - Internal error: ..\ztc\out.c 1201 when invoking a function that takes a struct as a default argument
Summary: Internal error: ..\ztc\out.c 1201 when invoking a function that takes a struc...
Status: RESOLVED DUPLICATE of issue 2935
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 07:31 UTC by Koroskin Denis
Modified: 2015-06-09 01:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2009-10-14 07:31:27 UTC
struct Test
{
    this(int i)
    {
    }
}

void foo(Test test = Test(0))
{
}

void main()
{
    foo();
}

Output: Internal error: ..\ztc\out.c 1201
Comment 1 Don 2009-10-14 07:45:12 UTC
Looks like another case of bug 2437 = bug 2935. The same root cause gives an ICE in three different places.
Comment 2 Don 2009-10-14 07:45:46 UTC
No, it's the same as bug 2935.

*** This issue has been marked as a duplicate of issue 2935 ***