Bug 17285 – Segfault when types are used in array literals

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-03-29T19:47:44Z
Last change time
2020-03-21T03:56:40Z
Keywords
ice, ice-on-invalid-code, pull
Assigned to
No Owner
Creator
kinke

Comments

Comment #0 by kinke — 2017-03-29T19:47:44Z
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]) {} }
Comment #1 by b2.temp — 2019-03-02T10:24:13Z
This happens with any type actually, when it tries to find the common type.
Comment #2 by dlang-bot — 2019-03-02T10:40:40Z
@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
Comment #3 by dlang-bot — 2019-03-02T16:09:21Z
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
Comment #4 by dlang-bot — 2019-06-16T20:57:30Z
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