The following code crashes DMD with a stack overflow: enum Foo { a, b = Foo.min, c }
@MoonlightSentinel created dlang/dmd pull request #12371 "Fix 21797 - Stack overflow for forward-referenced enum min / max" fixing this issue: - Fix 21797 - Stack overflow for forward-referenced enum min / max Apply the fix for `.init` to `.min` / `.max`. See 54805374b0043a38c50f1ea13412004901e5797d https://github.com/dlang/dmd/pull/12371
dlang/dmd pull request #12371 "Fix 21797 - Stack overflow for forward-referenced enum min / max" was merged into master: - 2ae90b863befa78b2479aedebc2db9941e67c231 by MoonlightSentinel: Fix 21797 - Stack overflow for forward-referenced enum min / max Apply the fix for `.init` to `.min` / `.max`. See 54805374b0043a38c50f1ea13412004901e5797d https://github.com/dlang/dmd/pull/12371