@@ -60,3 +61,98 @@ void f3() {
f2(0);
f2(0); // expected-error {{no matching function for call to 'f2'}}
}
+
+#if __cplusplus >= 202002L
+namespace GH138657 {
+template // #gh138657-template-head
+class meta {};
+template
+class meta {}; // expected-error {{called object t
@@ -60,3 +61,98 @@ void f3() {
f2(0);
f2(0); // expected-error {{no matching function for call to 'f2'}}
}
+
+#if __cplusplus >= 202002L
+namespace GH138657 {
+template // #gh138657-template-head
+class meta {};
+template
+class meta {}; // expected-error {{called object t
yfeldblum wrote:
@cor3ntin Just to follow up here. Thanks for reverting and re-landing a fixed
version. I haven't seen the problem reappear in any of the projects I work on.
https://github.com/llvm/llvm-project/pull/138731
___
cfe-commits mailing list