www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1494] New: ICE on struct literal when struct has union members

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1494

           Summary: ICE on struct literal when struct has union members
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: tomas famolsen.dk


module hmm;

struct S
{
    union {
        int i;
        uint ui;
    }
}

void main()
{
    S s = S(1);
}

------------------------------------------------

hmm.d: In function ‘main’:
hmm.d:13: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
Sep 11 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1494


dvdfrdmn users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #1 from dvdfrdmn users.sf.net  2007-09-14 00:31 -------
Fixed in svn rev 153 / release 0.25 by updating to DMD 1.021.

*** This bug has been marked as a duplicate of 1384 ***


-- 
Sep 13 2007