www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1226] New: ICE on a struct literal

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

           Summary: ICE on a struct literal
           Product: D
           Version: 1.014
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: onlystupidspamhere yahoo.se


The following code crashes DMD:

struct A {}

struct B(L) {
  A l;
}

void main() {
  A a;
  auto b = B!(A)(a);
}


-- 
May 10 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1226


deewiant gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deewiant gmail.com
           Keywords|                            |ice-on-valid-code
            Summary|ICE on a struct literal     |ICE on a struct literal of a
                   |                            |struct containing a struct





Simplified case:

struct A {}

struct B {
        A a;
}

void main() {
        B b = B();
}


-- 
May 31 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1226


onlystupidspamhere yahoo.se changed:

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





Fixed in DMD 1.015.


-- 
Jun 06 2007