diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-18 02:10:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-18 02:10:12 +0000 |
commit | ef985ac91c0752dd6515a422778e056064cee9de (patch) | |
tree | ac900c7f4945aff93adbbdca5b041756435643c2 /clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp | |
parent | 1d24af872df47c0baad9cc291a05575c2e4947d5 (diff) | |
download | bcm5719-llvm-ef985ac91c0752dd6515a422778e056064cee9de.tar.gz bcm5719-llvm-ef985ac91c0752dd6515a422778e056064cee9de.zip |
Fix accepts-invalid if a variable template explicit instantiation is missing an
argument list, but could be instantiated with argument list of <>.
llvm-svn: 190913
Diffstat (limited to 'clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp b/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp index 49be0bdcbe2..c98400cd878 100644 --- a/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp +++ b/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp @@ -168,7 +168,10 @@ namespace explicit_instantiation { template int var<int>; } #endif - + + template<typename=int> int missing_args; // expected-note {{here}} + template int missing_args; // expected-error {{must specify a template argument list}} + namespace extern_var { // TODO: } |