dmd segfaults
matovitch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 31 09:50:11 PDT 2014
Hi !
Does anybody knows why dmd segfaults on this code ? Should I
report this as a bug ?
import std.stdio;
enum LiftingGender
{
PREDICT,
UPDATE,
}
struct Test(float[][] coeffs,
int[] offsets,
LiftingGender gender)
{
immutable float[][] coeffs = coeffs;
immutable int[] offsets = offsets;
immutable LiftingGender gender;
}
void main()
{
Test!([[0.5,-1]], [-1], LiftingGender.PREDICT) test;
writeln(test);
}
More information about the Digitalmars-d-learn
mailing list