D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3477 - ICE when assign struct with ctor to enum
Summary: ICE when assign struct with ctor to enum
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 major
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2009-11-05 15:47 UTC by Kyle Foley
Modified: 2015-06-09 01:26 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 Kyle Foley 2009-11-05 15:47:07 UTC
import std.stdio;

struct A
{
	string member;

	this(string m) {
		member = m;
	}
}

int main(string[] args)
{
	enum str = A("hello there");
	writeln( str );

	return 0;
}

---

Internal error: ../ztc/symbol.c 1041
Comment 1 Don 2009-11-06 23:44:55 UTC
Fixed DMD2.036.