www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19473] New: DMD Segfault when com

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

          Issue ID: 19473
           Summary: DMD Segfault when com
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: deadalnix gmail.com

DMD Segfault on the following sample code:

struct A {
        P p;

        struct UTpl() {
                union {
                        P p;
                }
        }

        alias U() = UTpl!();
}

alias B = A.U!();

struct C {
        union D {
                B b;
        }
}

union P {
        C.D p;
}


I have not been able to reduce the sample case further and I'm not quite sure
what's going on.

--
Dec 10 2018