www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21792] New: Enum using itself as base type crashes dmd

https://issues.dlang.org/show_bug.cgi?id=21792

          Issue ID: 21792
           Summary: Enum using itself as base type crashes dmd
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

The following code makes dmd crash with a stack overflow:

enum Bar : Bar
{
    a
}

--
Apr 02