blob: ba6024b000b8f9f454cc4cb5d320971f77620f7e [file] [log] [blame]
/* TEST_OUTPUT:
---
fail_compilation/test19473.d(14): Error: union `test19473.P` no size because of forward reference
---
*/
// https://issues.dlang.org/show_bug.cgi?id=19473
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;
}