[Issue 15406] New: [ICE] Accessing member of namespace embedded in a struct causes segfault

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 4 16:14:10 PST 2015


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: nobody at puremagic.com
          Reporter: monkeyworks12 at hotmail.com

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

--


More information about the Digitalmars-d-bugs mailing list