D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20545 - Segfault/Assertion failure when parsing invalid AA literal
Summary: Segfault/Assertion failure when parsing invalid AA literal
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-01-29 18:30 UTC by moonlightsentinel
Modified: 2020-01-31 09:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description moonlightsentinel 2020-01-29 18:30:14 UTC
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 Dlang Bot 2020-01-30 05:29:23 UTC
@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 Dlang Bot 2020-01-31 09:51:41 UTC
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