================
@@ -364,6 +364,31 @@ namespace rdar12629723 {
};
}
+namespace GH91131 {
+ template <typename T>
+ struct B : T {};
+
+ template <typename T>
+ struct A : B<T> {};
+
+ // expected-note@+1 {{attempt to specialize declaration here}}
+ struct C {}; // first declaration (valid and complete)
+
+ // expected-error@+1 {{extraneous 'template<>' in declaration of struct 'C'}}
+ template <>
+ struct C {}; // second declaration (invalid)
+ // expected-error@-1 {{specialization of member 'GH91131::C' does not
specialize an instantiated member}}
+
+ // crash before pull 92597:
----------------
shafik wrote:
We can leave out the issue numbers since the summary references the issue we
can go to the issue to discover these details.
https://github.com/llvm/llvm-project/pull/236018
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits