From 3af700977bdc3047044f22409f0e8aa24daae0f7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 9 Feb 2017 22:14:25 +0000 Subject: Diagnose attempts to explicitly instantiate a template at class scope. Previously Clang would simply ignore the 'template' keyword in this case. llvm-svn: 294639 --- clang/test/SemaTemplate/explicit-instantiation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/SemaTemplate/explicit-instantiation.cpp') diff --git a/clang/test/SemaTemplate/explicit-instantiation.cpp b/clang/test/SemaTemplate/explicit-instantiation.cpp index 040a932e972..010716dd142 100644 --- a/clang/test/SemaTemplate/explicit-instantiation.cpp +++ b/clang/test/SemaTemplate/explicit-instantiation.cpp @@ -103,8 +103,8 @@ namespace PR7622 { // Test that we do not crash. class TC1 { class TC2 { - template // FIXME: error here. - void foo() { } + template + void foo() { } // expected-error{{expected '<' after 'template'}} }; }; -- cgit v1.2.3