diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-08 04:37:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-08 04:37:51 +0000 |
commit | 7ebb07c87c1648cedf83799fd146b5d469b24c56 (patch) | |
tree | 311b6c411ac85e6a62c749d848781b339b6f5faa /clang/test/SemaTemplate/alias-templates.cpp | |
parent | 74801c81827a761f5fd9d3389cbf14dcb4b65c49 (diff) | |
download | bcm5719-llvm-7ebb07c87c1648cedf83799fd146b5d469b24c56.tar.gz bcm5719-llvm-7ebb07c87c1648cedf83799fd146b5d469b24c56.zip |
PR13243: When deducing a non-type template parameter which is specified as an
expression, skip over any SubstNonTypeTemplateParmExprs which alias templates
may have inserted before checking for a DeclRefExpr referring to a non-type
template parameter declaration.
llvm-svn: 159909
Diffstat (limited to 'clang/test/SemaTemplate/alias-templates.cpp')
-rw-r--r-- | clang/test/SemaTemplate/alias-templates.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/alias-templates.cpp b/clang/test/SemaTemplate/alias-templates.cpp index 75615ee2951..a074bc4e1e6 100644 --- a/clang/test/SemaTemplate/alias-templates.cpp +++ b/clang/test/SemaTemplate/alias-templates.cpp @@ -100,3 +100,12 @@ namespace PR11848 { Hidden1<Hide> h1; // expected-note{{in instantiation of template class 'PR11848::Hidden1<PR11848::Hide>' requested here}} Hidden2<Hide, double, char> h2(1, 2); } + +namespace PR13243 { + template<typename A> struct X {}; + template<int I> struct C {}; + template<int I> using Ci = C<I>; + + template<typename A, int I> void f(X<A>, Ci<I>) {} + template void f(X<int>, C<0>); +} |