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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 15 13:32:31 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13472

Kenji Hara <k.hara.pg at 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 at 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

--


More information about the Digitalmars-d-bugs mailing list