Thread overview
[Issue 13472] Regression: trying to insert a null into an array of object segfaults the compiler.
[Issue 13472] [REG2.066] trying to insert a null into an array of object segfaults the compiler
Sep 15, 2014
Kenji Hara
September 14, 2014
https://issues.dlang.org/show_bug.cgi?id=13472

--- Comment #1 from erikas.aubade@gmail.com ---
Created attachment 1428
  --> https://issues.dlang.org/attachment.cgi?id=1428&action=edit
Testcase that makes the compiler barf

--
September 15, 2014
https://issues.dlang.org/show_bug.cgi?id=13472

erikas.aubade@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |regression

--
September 15, 2014
https://issues.dlang.org/show_bug.cgi?id=13472

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Hardware|x86                         |All
            Summary|Regression: trying to       |[REG2.066] trying to insert
                   |insert a null into an array |a null into an array of
                   |of object segfaults the     |object segfaults the
                   |compiler.                   |compiler
                 OS|Windows                     |All

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
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

--
September 17, 2014
https://issues.dlang.org/show_bug.cgi?id=13472

--- Comment #3 from github-bugzilla@puremagic.com ---
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

--
September 18, 2014
https://issues.dlang.org/show_bug.cgi?id=13472

--- Comment #4 from github-bugzilla@puremagic.com ---
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

--
February 19, 2015
https://issues.dlang.org/show_bug.cgi?id=13472

--- Comment #5 from github-bugzilla@puremagic.com ---
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

--