[Issue 19473] New: DMD Segfault when com

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 10 16:18:04 UTC 2018


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 at puremagic.com
          Reporter: deadalnix at 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.

--


More information about the Digitalmars-d-bugs mailing list