[Issue 17874] New: Segmentation fault when constructing a struct with a static

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 2 22:24:49 UTC 2017


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: nobody at puremagic.com
          Reporter: briancschott at gmail.com

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)

--


More information about the Digitalmars-d-bugs mailing list