[Issue 21797] New: Stack overflow for forward-referenced enum min / max

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 4 20:53:43 UTC 2021


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 at puremagic.com
          Reporter: moonlightsentinel at disroot.org

The following code crashes DMD with a stack overflow:

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

--


More information about the Digitalmars-d-bugs mailing list