|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.bugs - [Issue 3765] New: User defined types contains few user defined types
http://d.puremagic.com/issues/show_bug.cgi?id=3765 Summary: User defined types contains few user defined types Product: D Version: 2.040 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: repeatedly gmail.com --- Comment #0 from Masahiro Nakagawa <repeatedly gmail.com> 2010-02-03 05:54:55 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- Feb 03 2010
|