www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3765] New: User defined types contains few user defined types

reply d-bugmail puremagic.com writes:
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
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3765


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies gmail.com> 2011-06-12 23:01:31 PDT ---
Works with current dmd (1.068 & 2.053)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 12 2011