Bug 3765 – User defined type contains few user defined types

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-02-03T05:54:00Z
Last change time
2015-06-09T01:27:40Z
Assigned to
nobody
Creator
repeatedly

Comments

Comment #0 by repeatedly — 2010-02-03T05:54:55Z
NOTE: This report is minimum sample. Original code is here http://dimerp.web.fc2.com/dx01.d struct S1 // class S1 and union S1 too { union { S2 a; S2 b; } // struct too union { S2 c; } } struct S2 { } // class S2: OK, union S2: crash, DMD crashed when I tried to compile this code. But following codes, changed S1 members, succeeds. struct S1 { union { S2 a; } union { S2 b; } union { S2 c; } } or struct S1 { union { S2 a; S2 b; S2 c; } } Of course. Compiling succeeds if S2 defines before S1.
Comment #1 by yebblies — 2011-06-12T23:01:31Z
Works with current dmd (1.068 & 2.053)