summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/explicit-instantiation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-23 02:16:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-23 02:16:45 +0000
commit2644063ec9db70619abec440e02be1c3c815ef4b (patch)
treedd2918f559eb59795757ae10aa8e538a28cacd5a /clang/test/SemaTemplate/explicit-instantiation.cpp
parent6ea1b76d71bca1f11d9d3842fed98b7b8086615d (diff)
downloadbcm5719-llvm-2644063ec9db70619abec440e02be1c3c815ef4b.tar.gz
bcm5719-llvm-2644063ec9db70619abec440e02be1c3c815ef4b.zip
Pass context and access to Parser::ParseExplicitInstantiation() for
good parser error recovery and for not crashing. We still have a accepts-invalid-code bug. llvm-svn: 147216
Diffstat (limited to 'clang/test/SemaTemplate/explicit-instantiation.cpp')
-rw-r--r--clang/test/SemaTemplate/explicit-instantiation.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/explicit-instantiation.cpp b/clang/test/SemaTemplate/explicit-instantiation.cpp
index dae5c36b707..13d76befe28 100644
--- a/clang/test/SemaTemplate/explicit-instantiation.cpp
+++ b/clang/test/SemaTemplate/explicit-instantiation.cpp
@@ -97,3 +97,11 @@ namespace PR7622 {
// expected-error{{expected member name or ';' after declaration specifiers}}
template struct basic_streambuf<int>;
}
+
+// Test that we do not crash.
+class TC1 {
+ class TC2 {
+ template // FIXME: error here.
+ void foo() { }
+ };
+};
OpenPOWER on IntegriCloud