diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-05 07:33:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-05 07:33:43 +0000 |
commit | 525f96c0ef39f91abd26b1b4584ba1814e7ebc28 (patch) | |
tree | cc0f56e69af84be05ac59db1ca7e459d05133baa /test/SemaTemplate/default-expr-arguments.cpp | |
parent | 9da559868fcdd26ac0448a2943cc27af74923eb3 (diff) |
Default function arguments for function template specializations
always come from the primary template, so gather the instantiation
template arguments from the primary template.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/default-expr-arguments.cpp')
-rw-r--r-- | test/SemaTemplate/default-expr-arguments.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/default-expr-arguments.cpp b/test/SemaTemplate/default-expr-arguments.cpp index 131b80cb1f..3da43fa675 100644 --- a/test/SemaTemplate/default-expr-arguments.cpp +++ b/test/SemaTemplate/default-expr-arguments.cpp @@ -177,3 +177,10 @@ namespace PR5810 { X<float> x; // expected-note{{member function}} } } + +template<typename T> void f4(T, int = 17); +template<> void f4<int>(int, int); + +void f4_test(int i) { + f4(i); +} |