Bug 21792 – Enum using itself as base type crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-02T19:51:13Z
Last change time
2021-04-04T16:30:11Z
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2021-04-02T19:51:13Z
The following code makes dmd crash with a stack overflow: enum Bar : Bar { a }
Comment #1 by dlang-bot — 2021-04-04T16:30:11Z
dlang/dmd pull request #12347 "Fix 21792 - Enum using itself as base type crashes dmd " was merged into master: - bb0e4804f697d473c202a143bb8e20d7891f9e42 by MoonlightSentinel: Fix 21792 - Enum using itself as base type crashes dmd Run semantic on the base type to resolve all missing properties and to detect invalid forward references. https://github.com/dlang/dmd/pull/12347