The following code makes dmd crash with a stack overflow: enum Bar : Bar { a }
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