// The following code causes a segmentation fault.
import std.stdio;
import std.string;
struct S { int a, b; }
invariant S[4] tab;
void f()
{
int i= 0;
writefln(tab[i]);
}
Comment #1 by clugdbug — 2009-05-06T08:22:40Z
Works for me in D2.029. (After changing writefln->writeln(tab[i]);, or to writefln("%s", tab[i]);
)
I suspect this is a duplicate of the segfault bugs fixed in 2.028/2.029.