================
@@ -1009,18 +1012,20 @@ namespace cwg355 { struct ::cwg355_S s; }
// cwg356: na
namespace cwg357 { // cwg357: yes
- template<typename T> struct A {
+ template<typename T> struct A { // #defined-here-cwg357-A
void f() const; // #cwg357-f
};
template<typename T> void A<T>::f() {}
// expected-error@-1 {{out-of-line definition of 'f' does not match any
declaration in 'A<T>'}}
- // expected-note@#cwg357-f {{member declaration does not match because it
is const qualified}}
+ // expected-note@#defined-here-cwg357-A {{defined here}}
+ // expected-note@#cwg357-f {{member declaration does not match because it is
const qualified}}
----------------
Endilll wrote:
```suggestion
// expected-note@#cwg357-f {{member declaration does not match because it
is const qualified}}
```
https://github.com/llvm/llvm-project/pull/110638
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits