[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 06:58:30 PDT 2024
================
@@ -108,6 +108,7 @@ namespace MultilevelSpecialization {
template<> template<int a, int b>
void B<int, int>::f(int i, int (&arr1)[a], int (&arr2)[b]) {}
// since-cxx11-error at -1 {{out-of-line definition of 'f' does not match any declaration in 'cwg2233::MultilevelSpecialization::B<int, int>'}}
+ // expected-note at -6 {{defined here}}
----------------
c8ef wrote:
Got it. I'll update the test case. Does the implementation itself look good? I just want to make sure since many test cases are affected.
https://github.com/llvm/llvm-project/pull/110638
More information about the cfe-commits
mailing list