summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2011-12-20 20:32:49 +0000
committerNico Weber <nicolasweber@gmx.de>2011-12-20 20:32:49 +0000
commit3ffc4c93fdb4b7bb8020e50daaaaa0288462b388 (patch)
tree54fe59a15a1a4d1ec29ac3e76488b5d26dbaf3a2 /clang/test
parent6cee53d06ef86c1c4a201e96ef9ef9d575e68155 (diff)
downloadbcm5719-llvm-3ffc4c93fdb4b7bb8020e50daaaaa0288462b388.tar.gz
bcm5719-llvm-3ffc4c93fdb4b7bb8020e50daaaaa0288462b388.zip
Fix a crash on invalid, http://llvm.org/pr11599
llvm-svn: 146988
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
index ff1438285e3..38ae7688a0b 100644
--- a/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
+++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
@@ -72,3 +72,10 @@ namespace PR7979 {
template <typename T> int S<T>::i;
template <typename T> void S<T>::S2::h() {}
}
+
+namespace PR11599 {
+ template <typename STRING_TYPE> class BasicStringPiece; // expected-note {{template is declared here}}
+
+ extern template class BasicStringPiece<int>; // expected-error{{explicit instantiation of undefined template 'PR11599::BasicStringPiece<int>}}
+ template class BasicStringPiece<int>;
+}
OpenPOWER on IntegriCloud