www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21791] New: Stack overflow for forward-referenced enum

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

          Issue ID: 21791
           Summary: Stack overflow for forward-referenced enum initializer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

This code causes due to a stack overflow:

enum Foo
{
    a = Foo.init
}

--
Apr 02