https://issues.dlang.org/show_bug.cgi?id=15406

          Issue ID: 15406
           Summary: [ICE] Accessing member of namespace embedded in a
                    struct causes segfault
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following program causes the compiler to segfault. It compiles successfully
if `Test.Name.Space.test` is not accessed.

struct Test
{
    extern(C++, Name.Space)
    {
        enum test = 0;
    }
}

void main()
{
    assert(Test.Name.Space.test == 0);
}

--

Reply via email to