a tar containing 2 tars (each with the code reproducing the bug on a specific dmd version)
application/gzip
7116
Comments
Comment #0 by maor — 2015-06-02T10:54:06Z
Created attachment 1525
a tar containing 2 tars (each with the code reproducing the bug on a specific dmd version)
Attached is the dustmite reduced code.
This bug reproduces on both dmd 2.066.1 & 2.067.1 (but the code reproducing it is slightly different, therefore, the attachment contains a tar with 2 tars in it , one for each version of dmd).
The reduced code has some compilation errors (the original one didn't) but the seg fault still happens.
after untarring the code just run:
for 2.066.1: dmd -g -w -c weka/XXX/XXZ/XXY.d -ofsome_obj.o
for 2.067.1: dmd -c weka/BXX/IXX/DXX.d
Comment #1 by dlang-bugzilla — 2015-06-03T01:04:55Z
Reduced test case from the second tar for 2.067.1:
alias TypeTuple(T...) = T;
struct X
{
static struct NA()
{
X x;
void check()
{
x.func();
}
}
alias na = NA!();
auto func()
{
Y* p;
p.func();
}
}
struct Y
{
mixin Mix;
}
template Mix()
{
void func()
{
auto z = Z(null);
}
}
struct Type(size_t v) {}
enum errVal = errorValue;
struct Z
{
Type!errVal v;
}