Bug 20545 – Segfault/Assertion failure when parsing invalid AA literal
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-01-29T18:30:14Z
Last change time
2020-01-31T09:51:41Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel
Comments
Comment #0 by moonlightsentinel — 2020-01-29T18:30:14Z
Using DMD v2.090.0-dirty on the following snippet
--------------
static initial = [{ }: ];
-------------
yields:
(Linux) Segfault
(Windows) core.exception.AssertError@dmd\parse.d(6614): Assertion failure
Comment #1 by dlang-bot — 2020-01-30T05:29:23Z
@thewilsonator created dlang/dmd pull request #10749 "Fix issue 20545 - Segfault/Assertion failure when parsing invalid AA literal" fixing this issue:
- Fix issue 20545 - Segfault/Assertion failure when parsing invalid AA literal
https://github.com/dlang/dmd/pull/10749
Comment #2 by dlang-bot — 2020-01-31T09:51:41Z
dlang/dmd pull request #10749 "Fix issue 20545 - Segfault/Assertion failure when parsing invalid AA literal" was merged into master:
- 383ba6237d9de251bd5731a3de2611d25b97dd8e by Nicholas Lindsay Wilson:
Fix issue 20545 - Segfault/Assertion failure when parsing invalid AA literal
https://github.com/dlang/dmd/pull/10749