From 10ed9819769e66f52cc6e22a74c2d96e601d7d26 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 22 Jul 2013 18:09:32 +0000 Subject: [PATCH] Add testcase for PR16134, which no longer crashes with ToT. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186849 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/recovery-crash.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/SemaTemplate/recovery-crash.cpp b/test/SemaTemplate/recovery-crash.cpp index 61e880bf5b..b5a0e1fa13 100644 --- a/test/SemaTemplate/recovery-crash.cpp +++ b/test/SemaTemplate/recovery-crash.cpp @@ -16,3 +16,9 @@ void Test() { B b(0); // expected-note{{in instantiation of function template}} } + +// Don't crash here. +namespace PR16134 { + template struct S // expected-error {{expected ';'}} + template <> static S::f() // expected-error +{{}} +} -- 2.50.1