summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/explicit-specialization-member.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/explicit-specialization-member.cpp')
-rw-r--r--clang/test/SemaTemplate/explicit-specialization-member.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/explicit-specialization-member.cpp b/clang/test/SemaTemplate/explicit-specialization-member.cpp
index f302836c7e4..4300ceb17ec 100644
--- a/clang/test/SemaTemplate/explicit-specialization-member.cpp
+++ b/clang/test/SemaTemplate/explicit-specialization-member.cpp
@@ -57,3 +57,14 @@ template<typename T> struct Helper {
template<typename T> void Helper<T>::func<2>() {} // expected-error {{cannot specialize a member}} \
// expected-error {{no function template matches}}
}
+
+namespace b35070233 {
+ template <typename T> struct Cls {
+ static void f() {}
+ };
+
+ void g(Cls<int>);
+
+ template<> struct Cls<int>; // expected-note {{forward declaration}}
+ template<> void Cls<int>::f(); // expected-error {{incomplete type}}
+}
OpenPOWER on IntegriCloud