Home | History | Annotate | Download | only in class.union

Lines Matching full:constructor

17   Ctor() { abort(); } // expected-note 2{{because type 'Ctor' has a user-provided default constructor}} expected-note 2{{here}}
20 Ctor2(); // expected-note {{because type 'Ctor2' has a user-provided default constructor}} expected-note 2{{here}}
22 class CtorTmpl { // expected-note {{because type 'CtorTmpl' has no default constructor}}
23 template<typename T> CtorTmpl(); // expected-note {{implicit default constructor suppressed by user-declared constructor}}
26 class CopyCtor { // expected-note 2{{because no constructor can be used to copy an object of type 'const CopyCtor'}}
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}}
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}}
58 Ctor ctor; // expected-note {{because field of type 'Ctor' has a user-provided default constructor}}
59 } m3; // expected-error {{union member 'm3' has a non-trivial constructor}}
61 Ctor2 ctor2; // expected-note {{because field of type 'Ctor2' has a user-provided default constructor}}
62 } m3a; // expected-error {{union member 'm3a' has a non-trivial constructor}}
63 struct { // expected-note {{no constructor can be used to copy an object of type 'const}}
65 } m4; // expected-error {{union member 'm4' has a non-trivial copy constructor}}
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}}
82 struct s3 : Ctor { // expected-note {{because base class of type 'Ctor' has a user-provided default constructor}}
83 } m3; // expected-error {{union member 'm3' has a non-trivial constructor}}
84 struct s3a : Ctor2 { // expected-note {{because base class of type 'Ctor2' has a user-provided default constructor}}
85 } m3a; // expected-error {{union member 'm3a' has a non-trivial constructor}}
86 struct s4 : CopyCtor { // expected-note {{because no constructor can be used to copy an object of type 'const U3::s4'}}
87 } m4; // expected-error {{union member 'm4' has a non-trivial copy constructor}}
96 } m8; // expected-error {{union member 'm8' has a non-trivial constructor}}