D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3648 - ICE when invoking a function with a default struct argument
Summary: ICE when invoking a function with a default struct argument
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-12-25 07:13 UTC by Koroskin Denis
Modified: 2015-06-09 01:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2009-12-25 07:13:10 UTC
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 Koroskin Denis 2009-12-25 07:15:59 UTC

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