www.digitalmars.com         C & C++   DMDScript  

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

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

          Issue ID: 21797
           Summary: Stack overflow for forward-referenced enum min / max
           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 crashes DMD with a stack overflow:

enum Foo
{
    a,
    b = Foo.min,
    c
}

--
Apr 04