D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault
Summary: [ICE] dmd/expression.d(2790): Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-23 17:56 UTC by Iain Buclaw
Modified: 2019-03-10 16:44 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2019-01-23 17:56:00 UTC
Minimal test(s)

---

deprecated([]) module m;

---

deprecated([""]) module m;

---


deprecated(['a']) module m;


---

deprecated(["a"]) module m;

---


All cause a segmentation fault in ArrayLiteralExp::toStringExp().
Comment 1 Iain Buclaw 2019-01-27 01:41:27 UTC
Should be using semanticString, and delay looking at the module deprecation message until the module-level scope has been created.
Comment 2 github-bugzilla 2019-01-28 08:24:01 UTC
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/9843286ed0a0ad46b7bce41a265f18b4714601b0
fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault

https://github.com/dlang/dmd/commit/1cfb6d9f9fda4831578b8ecd53c97086464782f5
Merge pull request #9300 from ibuclaw/issue19609

fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault
Comment 3 github-bugzilla 2019-01-29 00:14:29 UTC
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/8ed467413e1507e4d87c5dbfd406e290ab188a6a
fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault (part 2)

https://github.com/dlang/dmd/commit/a65c95fb41d9251fead258eaa9973d53141fff59
Merge pull request #9304 from ibuclaw/test19609b

fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault (part 2)
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Comment 4 Dlang Bot 2019-03-07 16:32:20 UTC
dlang/dmd pull request #9427 "[dmd-cxx] fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault" was merged into dmd-cxx:

- 0b7b1c49516d11e5d1238be79c579f841da58193 by Iain Buclaw:
  fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault

https://github.com/dlang/dmd/pull/9427
Comment 5 Dlang Bot 2019-03-10 16:44:14 UTC
dlang/dmd pull request #9436 "[dmd-cxx] fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault (part 2)" was merged into dmd-cxx:

- 2868ba75051dc2d5b640fed7e1fb8342eecbd23f by Iain Buclaw:
  fix Issue 19609 - [ICE] dmd/expression.d(2790): Segmentation fault (part 2)

https://github.com/dlang/dmd/pull/9436