Thread overview
[Issue 1800] New: Compiler crash on enums nested in structs
Jan 23, 2008
d-bugmail
Jan 27, 2008
d-bugmail
Jan 27, 2008
d-bugmail
Mar 07, 2008
d-bugmail
January 23, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1800

           Summary: Compiler crash on enums nested in structs
           Product: D
           Version: 2.010
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: ludwig@informatik.uni-luebeck.de


If a nested enum with the type of the containing struct is declared, the compiler crashes:

struct S {
  enum S some_constant = {0};

  int member;
}


-- 

January 27, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1800


spam@extrawurst.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spam@extrawurst.org




------- Comment #2 from spam@extrawurst.org  2008-01-27 04:54 -------
*** Bug 1808 has been marked as a duplicate of this bug. ***


-- 

January 27, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1800


spam@extrawurst.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical




------- Comment #3 from spam@extrawurst.org  2008-01-27 04:56 -------
this one came up a couple of times now and the number of duplicates shows how often people stumble over it.


-- 

March 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1800


bugzilla@digitalmars.com changed:

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




------- Comment #4 from bugzilla@digitalmars.com  2008-03-07 00:22 -------
Fixed dmd 2.012


--