Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test19473.d

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test19473.d(15): Error: union `test19473.P` no size because of forward reference
4 fail_compilation/test19473.d(31): error on member `test19473.P.p`
5 ---
6 */
7
8 // https://issues.dlang.org/show_bug.cgi?id=19473
9
10 struct A {
11 P p;
12
13 struct UTpl() {
14 union {
15 P p;
16 }
17 }
18
19 alias U = UTpl!();
20 }
21
22 alias B = A.U;
23
24 struct C {
25 union D {
26 B b;
27 }
28 }
29
30 union P {
31 C.D p;
32 }