diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-30 20:35:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-30 20:35:20 +0000 |
commit | 5e40291d13ed2d7711235df947a2a18a925c7536 (patch) | |
tree | 8c957a76bcfa89c583f6b9170debbf0e304ceee2 /test/SemaTemplate/instantiate-function-params.cpp | |
parent | 4552ff080062cacc4b57906e6f2f09e9d796b6a4 (diff) |
Improve diagnostics when printing a template instantiation backtrace
involving substitution of deduced template arguments into a class
template partial specialization or function template, or when
substituting explicitly-specific template arguments into a function
template. We now print the actual deduced argument bindings so the
user can see what got deduced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-function-params.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-function-params.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-function-params.cpp b/test/SemaTemplate/instantiate-function-params.cpp index 14c4d9f933..ea8dd70619 100644 --- a/test/SemaTemplate/instantiate-function-params.cpp +++ b/test/SemaTemplate/instantiate-function-params.cpp @@ -7,7 +7,7 @@ template<typename T1> struct if_ { }; template <class Model, void (Model::*)()> struct wrap_constraints { }; template <class Model> -inline char has_constraints_(Model* , // expected-note 4{{while substituting}} \ +inline char has_constraints_(Model* , // expected-note 4{{while substituting deduced template arguments into function template 'has_constraints_' [with }} \ // expected-note 3{{candidate template ignored}} wrap_constraints<Model,&Model::constraints>* = 0); // expected-note 4{{in instantiation}} |