Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Union

553     union U1 {
557 union U2 {
565 static_assert(g.t.u1.a == 42, ""); // expected-error {{constant expression}} expected-note {{read of member 'a' of union with active member 'b'}}
568 static_assert(g.t.u2.d == 42, ""); // expected-error {{constant expression}} expected-note {{read of member 'd' of union with active member 'c'}}
753 namespace Union {
755 union U {
762 static_assert(u[0].b, ""); // expected-error {{constant expression}} expected-note {{read of member 'b' of union with active member 'a'}}
771 union Empty {};
778 static_assert(y.b == 42, ""); // expected-error {{constant expression}} expected-note {{'b' of union with active member 'a'}}
1114 union {
1123 union {
1138 static_assert(s1.c == 0, ""); // expected-error {{constant expression}} expected-note {{union with active member}}
1141 static_assert(s1.f == 0, ""); // expected-error {{constant expression}} expected-note {{union with active member}}
1143 static_assert(s2.a == 0, ""); // expected-error {{constant expression}} expected-note {{union with active member}}
1144 static_assert(s2.b == 0, ""); // expected-error {{constant expression}} expected-note {{union with active member}}
1147 static_assert(s2.e == 0, ""); // expected-error {{constant expression}} expected-note {{union with active member}}