@@ -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