[clang] [clang] Don't lose track of explicit specializations of member functi… (PR #111267)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 5 19:12:02 PDT 2024
================
@@ -156,7 +156,13 @@ namespace UsesThis {
auto h<int>() -> decltype(this); // expected-error {{'this' cannot be used in a static member function declaration}}
};
- template struct A<int>; // expected-note 3{{in instantiation of}}
+ template struct A<int>; // expected-note {{in instantiation of}}
+ template<> template<> void A<int>::f<int>();
+ template<> template<> void A<int>::g<int>();
+ void test1() {
+ A<int>().f<int>(); // expected-note {{in instantiation of}}
+ A<int>().g<int>(); // expected-note {{in instantiation of}}
+ }
----------------
zyn0217 wrote:
There weren't test failures here, right?
(Changes here are hopefully not hiding the failures)
https://github.com/llvm/llvm-project/pull/111267
More information about the cfe-commits
mailing list