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);
}

Reply via email to