Bug 3477 – ICE when assign struct with ctor to enum

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2009-11-05T15:47:00Z
Last change time
2015-06-09T01:26:55Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
k-foley

Comments

Comment #0 by k-foley — 2009-11-05T15:47:07Z
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 by clugdbug — 2009-11-06T23:44:55Z
Fixed DMD2.036.