Lines Matching full:union
38 union U1 {
39 Virtual v; // expected-error {{union member 'v' has a non-trivial copy constructor}}
40 VirtualBase vbase; // expected-error {{union member 'vbase' has a non-trivial copy constructor}}
41 Ctor ctor; // expected-error {{union member 'ctor' has a non-trivial constructor}}
42 Ctor2 ctor2; // expected-error {{union member 'ctor2' has a non-trivial constructor}}
43 CtorTmpl ctortmpl; // expected-error {{union member 'ctortmpl' has a non-trivial constructor}}
44 …CopyCtor copyctor; // expected-error {{union member 'copyctor' has a non-trivial copy constructor}}
45 …CopyAssign copyassign; // expected-error {{union member 'copyassign' has a non-trivial copy assign…
46 Dtor dtor; // expected-error {{union member 'dtor' has a non-trivial destructor}}
50 union U2 {
53 } m1; // expected-error {{union member 'm1' has a non-trivial copy constructor}}
56 } m2; // expected-error {{union member 'm2' has a non-trivial copy constructor}}
59 } m3; // expected-error {{union member 'm3' has a non-trivial constructor}}
62 } m3a; // expected-error {{union member 'm3a' has a non-trivial constructor}}
65 } m4; // expected-error {{union member 'm4' has a non-trivial copy constructor}}
68 } m5; // expected-error {{union member 'm5' has a non-trivial copy assignment operator}}
71 } m6; // expected-error {{union member 'm6' has a non-trivial destructor}}
77 union U3 {
79 } m1; // expected-error {{union member 'm1' has a non-trivial copy constructor}}
81 } m2; // expected-error {{union member 'm2' has a non-trivial copy constructor}}
83 } m3; // expected-error {{union member 'm3' has a non-trivial constructor}}
85 } m3a; // expected-error {{union member 'm3a' has a non-trivial constructor}}
87 } m4; // expected-error {{union member 'm4' has a non-trivial copy constructor}}
89 } m5; // expected-error {{union member 'm5' has a non-trivial copy assignment operator}}
91 } m6; // expected-error {{union member 'm6' has a non-trivial destructor}}
96 } m8; // expected-error {{union member 'm8' has a non-trivial constructor}}
99 union U4 {
100 static int i1; // expected-warning {{static data member 'i1' in union is a C++11 extension}}
104 union U5 {
105 int& i1; // expected-error {{union member 'i1' has reference type 'int &'}}
108 union U6 {
116 union { // expected-note 6 {{in instantiation of member class}}