Bug 13472 – [REG2.066] trying to insert a null into an array of object segfaults the compiler

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-14T04:14:00Z
Last change time
2015-02-18T03:37:08Z
Keywords
ice, pull
Assigned to
nobody
Creator
erikas.aubade

Attachments

IDFilenameSummaryContent-TypeSize
1428file_13472.txtTestcase that makes the compiler barftext/plain115

Comments

Comment #0 by erikas.aubade — 2014-09-14T04:14:14Z
The attached code works fine on dmd 2.065, but on both 2.066.0 and 2.066.1-rc1, it causes the compiler to segfault without even printing any error messages.
Comment #1 by erikas.aubade — 2014-09-14T04:14:57Z
Created attachment 1428 Testcase that makes the compiler barf
Comment #2 by k.hara.pg — 2014-09-15T20:32:31Z
Inlining attached test case: class A { int a; } void main() { A[] test; test.length = 4; auto b = test[0..2] ~ null ~ test[2..$]; } The regression has introduced in: https://github.com/D-Programming-Language/dmd/pull/3581 Compiler fix: https://github.com/D-Programming-Language/dmd/pull/3994
Comment #3 by github-bugzilla — 2014-09-17T23:38:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ee4a9fb00944f453b671fa90072aa6307a84bf87 fix Issue 13472 - trying to insert a null into an array of object segfaults the compiler https://github.com/D-Programming-Language/dmd/commit/3d53260364ca60f7e2ed7df99061e622aec71d77 Merge pull request #3994 from 9rnsr/fix13472 [REG2.066] Issue 13472 - trying to insert a null into an array of object segfaults the compiler
Comment #4 by github-bugzilla — 2014-09-18T13:20:27Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7507f097c6b91d7bbecf317b19a0cd43f8810069 Merge pull request #3994 from 9rnsr/fix13472 [REG2.066] Issue 13472 - trying to insert a null into an array of object segfaults the compiler
Comment #5 by github-bugzilla — 2015-02-18T03:37:08Z
Commits pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ee4a9fb00944f453b671fa90072aa6307a84bf87 fix Issue 13472 - trying to insert a null into an array of object segfaults the compiler https://github.com/D-Programming-Language/dmd/commit/3d53260364ca60f7e2ed7df99061e622aec71d77 Merge pull request #3994 from 9rnsr/fix13472