[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#500939: gdc-4.2-compiled test.d segfaults when it works on gdc-4.1



Package: gdc-4.2
Version: 0.25-4.2.4-3
Severity: important

Hi Arthur, D maintainers,

testing gdc-4.2 with the attached test.d (a minimal testcase for a
segfault that also happens with the hello world on the digital mars D
intro page[1]), the result segfaults. This does not happen with gdc-4.1.

$ gdc-4.1 x.d  ; ./a.out
a
0
b
$ gdc-4.2 x.d  ; ./a.out
a
Segmentation fault
$

This is on today's sid on amd64.

Kind regards

T.

1. http://digitalmars.com/d/
-- 
Thomas Viehmann, http://thomas.viehmann.net/
import std.stdio;

struct a
{
  int b;
}

void main(string[] args)
{
    writefln("a");

    a *t = new a;
    writefln("%d",t.b);
    writefln("b");
}


Reply to: