Home | History | Annotate | Download | only in dcl.fct.def.default

Lines Matching full:constructor

6   constexpr S1() = default; // expected-error {{defaulted definition of default constructor is not constexpr}}
21 constexpr S2(const S2&) = default; // expected-error {{defaulted definition of copy constructor is not constexpr}}
22 constexpr S2(S2&&) = default; // expected-error {{defaulted definition of move constructor is not constexpr}}
39 constexpr S3 s3d; // expected-error {{default initialization of an object of const type 'const S3' requires a user-provided default constructor}}
48 constexpr S4 s4b = S4(); // expected-error {{constant expression}} expected-note {{non-constexpr constructor}}
49 constexpr S4 s4c = s4a; // expected-error {{constant expression}} expected-note {{non-constexpr constructor}}
70 E2() noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted default constructor does not match the calculated one}}
71 E2(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy constructor does not match the calculated one}}
72 E2(E2&&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted move constructor does not match the calculated one}}
122 const B b; // expected-error {{default initialization of an object of const type 'const PR13492::B' requires a user-provided default constructor}}