Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Error

3 void fn() = default; // expected-error {{only special member}}
5 void fn() = default; // expected-error {{only special member}}
89 struct Error {
91 // declaration which has the type 'void () noexcept (T::error)'. We should
92 // get one error for 'Error<int>::Error()' and one for 'Error<int>::~Error()'.
93 void f() noexcept(T::error); // expected-error 2{{has no members}}
95 Error() noexcept(T::error);
96 Error(const Error&) noexcept(T::error);
97 Error(Error&&) noexcept(T::error);
98 Error &operator=(const Error&) noexcept(T::error);
99 Error &operator=(Error&&) noexcept(T::error);
100 ~Error() noexcept(T::error);
104 Error<int> e;
114 expected-note {{instantiation of exception specification for 'Error'}} \
115 expected-note {{instantiation of exception specification for '~Error'}}
116 Error<int> e;
130 X::X() = default; // expected-error {{redefinition}}
131 X::X(const X&) = default; // expected-error {{redefinition}}
132 X::X(X&&) = default; // expected-error {{redefinition}}
133 X &X::operator=(const X&) = default; // expected-error {{redefinition}}
134 X &X::operator=(X&&) = default; // expected-error {{redefinition}}
135 X::~X() = default; // expected-error {{redefinition}}
145 Y::Y() = default; // expected-error {{definition of explicitly defaulted}}
146 Y::Y(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
147 Y::Y(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
148 Y &Y::operator=(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
149 Y &Y::operator=(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
150 Y::~Y() = default; // expected-error {{definition of explicitly defaulted}}
168 Outer<T>::Inner1<T>::~Inner1() = delete; // expected-error {{nested name specifier 'Outer<T>::Inner1<T>::' for declaration does not refer into a class, class template or class template partial specialization}} expected-error {{only functions can have deleted definitions}}
171 Outer<T>::Inner2<T>::~Inner2() = default; // expected-error {{nested name specifier 'Outer<T>::Inner2<T>::' for declaration does not refer into a class, class template or class template partial specialization}} expected-error {{only special member functions may be defaulted}}
175 template<typename _Tp> // expected-error {{templates must have C++ linkage}}
185 B() noexcept(false) = default; // expected-error {{does not match the calculated one}}
186 ~B() noexcept(false) = default; // expected-error {{does not match the calculated one}}