Crashes with DMD 2.073.2 (but at least prints an error message before that): enum SETTINGS_THEME_VARIANT_KEY; void foo() { foreach(key; [SETTINGS_THEME_VARIANT_KEY, 1]) {} }
This happens with any type actually, when it tries to find the common type.
@Basile-z created dlang/dmd pull request #9404 "fix issue 17285 - Segfault when types are used in array literals" fixing this issue: - fix issue 17285 - Segfault when types are used in array literals https://github.com/dlang/dmd/pull/9404
dlang/dmd pull request #9404 "fix issue 17285 - Segfault when types are used in array literals" was merged into master: - 7204ca1bf54f744d8ac4c56834bdc727fa2bb944 by Basile Burg: fix issue 17285 - Segfault when types are used in array literals https://github.com/dlang/dmd/pull/9404
dlang/dmd pull request #10046 "[dmd-cxx] Backport semanticRun refactoring and recursive semantic SEGV bug fixes" was merged into dmd-cxx: - 92380066e181b0db4e64f7be65bf357430df8874 by Basile Burg: fix issue 17285 - Segfault when types are used in array literals https://github.com/dlang/dmd/pull/10046