diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-02-06 14:31:00 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-02-06 14:31:00 +0000 |
commit | 65f7c3dba22f0a1da715911b5395255528a9fda9 (patch) | |
tree | 8f9462a9443e3370bb4e8503fa792ac54745da27 /clang/test/SemaTemplate/template-id-expr.cpp | |
parent | c4e342b733296ad135e02d71a981969a83f2ffce (diff) | |
download | bcm5719-llvm-65f7c3dba22f0a1da715911b5395255528a9fda9.tar.gz bcm5719-llvm-65f7c3dba22f0a1da715911b5395255528a9fda9.zip |
Fixed instantiation of DependentScopeDeclRefExpr.
llvm-svn: 149868
Diffstat (limited to 'clang/test/SemaTemplate/template-id-expr.cpp')
-rw-r--r-- | clang/test/SemaTemplate/template-id-expr.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/template-id-expr.cpp b/clang/test/SemaTemplate/template-id-expr.cpp index de8d7f6c91a..4416f92723a 100644 --- a/clang/test/SemaTemplate/template-id-expr.cpp +++ b/clang/test/SemaTemplate/template-id-expr.cpp @@ -82,3 +82,17 @@ struct Y0 { x = this->template f4(0); // expected-error {{assigning to 'int' from incompatible type 'void'}} } }; + +struct A { + template<int I> + struct B { + static void b1(); + }; +}; + +template<int I> +void f5() { + A::template B<I>::template b1(); // expected-error {{'b1' following the 'template' keyword does not refer to a template}} +} + +template void f5<0>(); // expected-note {{in instantiation of function template specialization 'f5<0>' requested here}} |