mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
32 lines
518 B
D
32 lines
518 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test19473.d(15): Error: union `test19473.P` no size because of forward reference
|
|
fail_compilation/test19473.d(31): error on member `test19473.P.p`
|
|
---
|
|
*/
|
|
|
|
// 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;
|
|
}
|