1 /* PR middle-end/101172 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 union U
6 {
7 int a[3];
8 struct
9 {
10 int a : 3;
11 struct this_struct var; /* { dg-error "field 'var' has incomplete type" } */
12 } b;
13 };
14
15 const union U hello = {.a = {1, 2, 3}};
16
17 void foo()
18 {
19 int x = hello.b.a;
20 }