about a declaration within a return type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189083
91177308-0d34-0410-b5e6-
96231b3b80d8
"out-of-line %select{declaration|definition}2 of %0 "
"does not match any declaration in %1; did you mean %3?">;
def err_member_def_does_not_match_ret_type : Error<
- "out-of-line definition of %q0 differs from the declaration in the return type">;
+ "return type of out-of-line definition of %q0 differs from "
+ "that in the declaration">;
def err_nonstatic_member_out_of_line : Error<
"non-static data member defined out-of-line">;
def err_qualified_typedef_declarator : Error<
auto operator=(const A&) = default; // expected-error {{must return 'DefaultedMethods::A &'}}
A &operator=(A&&); // expected-note {{previous}}
};
- auto A::operator=(A&&) = default; // expected-error {{differs from the declaration in the return type}}
+ auto A::operator=(A&&) = default; // expected-error {{return type of out-of-line definition of 'DefaultedMethods::A::operator=' differs from that in the declaration}}
}
namespace Constexpr {
namespace rdar7980179 {
class A { void f0(); }; // expected-note {{previous}}
- int A::f0() {} // expected-error {{out-of-line definition of 'rdar7980179::A::f0' differs from the declaration in the return type}}
+ int A::f0() {} // expected-error {{return type of out-of-line definition of 'rdar7980179::A::f0' differs}}
}
namespace alias = A;