Bug 14398 – Segfault when nested struct in static array accesses context

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-03T01:11:00Z
Last change time
2015-06-17T21:04:14Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
jakobovrum

Comments

Comment #0 by jakobovrum — 2015-04-03T01:11:08Z
unittest { int outer; struct Inner { this(this) { outer = 42; // segfault } } struct Outer { Inner inner; this(int dummy) { inner = Inner(); } } Outer[1] arr = [Outer(int.init)]; }
Comment #1 by k.hara.pg — 2015-04-03T18:21:02Z
Comment #2 by github-bugzilla — 2015-04-18T04:17:27Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e99eb3fa18ca62f9209b8168badd8f42f3055126 fix Issue 14398 - Segfault when nested struct in static array accesses context https://github.com/D-Programming-Language/dmd/commit/5bad2acc86f1bf09d0b5c06bf653b25de0fe38ea Merge pull request #4552 from 9rnsr/fix14398 Issue 14398 - Segfault when nested struct in static array accesses context
Comment #3 by github-bugzilla — 2015-06-17T21:04:14Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e99eb3fa18ca62f9209b8168badd8f42f3055126 fix Issue 14398 - Segfault when nested struct in static array accesses context https://github.com/D-Programming-Language/dmd/commit/5bad2acc86f1bf09d0b5c06bf653b25de0fe38ea Merge pull request #4552 from 9rnsr/fix14398