diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-31 05:19:49 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-31 05:19:49 +0000 |
commit | 44ecdbdc6134c4906a8b8982809ead267cf52237 (patch) | |
tree | b038d40eacc62cd4db9edc7750f14191b4a4c2b1 /clang/test/SemaTemplate/recursive-template-instantiation.cpp | |
parent | 52e0de4c6e3644fb8b2e02aced03c6731452591f (diff) | |
download | bcm5719-llvm-44ecdbdc6134c4906a8b8982809ead267cf52237.tar.gz bcm5719-llvm-44ecdbdc6134c4906a8b8982809ead267cf52237.zip |
Improve 'failed template argument deduction' diagnostic for the case where we
have a direct mismatch between some component of the template and some
component of the argument. The diagnostic now says what the mismatch was, but
doesn't yet say which part of the template doesn't match.
llvm-svn: 174039
Diffstat (limited to 'clang/test/SemaTemplate/recursive-template-instantiation.cpp')
-rw-r--r-- | clang/test/SemaTemplate/recursive-template-instantiation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/recursive-template-instantiation.cpp b/clang/test/SemaTemplate/recursive-template-instantiation.cpp index d6a0b247dd4..fe37060185d 100644 --- a/clang/test/SemaTemplate/recursive-template-instantiation.cpp +++ b/clang/test/SemaTemplate/recursive-template-instantiation.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -template<typename T> void f(T* t) { // expected-note{{failed template argument deduction}} +template<typename T> void f(T* t) { // expected-note{{could not match 'T *' against 'int'}} f(*t); // expected-error{{no matching function}}\ // expected-note 3{{requested here}} } |