https://issues.dlang.org/show_bug.cgi?id=17874
Issue ID: 17874
Summary: Segmentation fault when constructing a struct with a
static
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
test.d:
---------------------------
struct ProfitCoef
{
float f = 0f;
double d = 0.0;
}
struct TheStruct
{
ulong a;
ProfitCoef[1] b;
}
void main()
{
auto t = TheStruct(0);
}
---------------------------
$ rdmd test.d
Segmentation fault (core dumped)
--