diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 22:14:25 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 22:14:25 +0000 |
| commit | 3af700977bdc3047044f22409f0e8aa24daae0f7 (patch) | |
| tree | 25c7ce87b0791470cdd2d220a8d02256a3c8f162 /clang/test/SemaTemplate/explicit-instantiation.cpp | |
| parent | 546bc1103b682c4ea66116ddaf0fc6fdf0a8bdd5 (diff) | |
| download | bcm5719-llvm-3af700977bdc3047044f22409f0e8aa24daae0f7.tar.gz bcm5719-llvm-3af700977bdc3047044f22409f0e8aa24daae0f7.zip | |
Diagnose attempts to explicitly instantiate a template at class scope. Previously Clang would simply ignore the 'template' keyword in this case.
llvm-svn: 294639
Diffstat (limited to 'clang/test/SemaTemplate/explicit-instantiation.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/explicit-instantiation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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'}} }; }; |

