]> granicus.if.org Git - clang/commit
Improve overload-candidate diagnostic for a function template that
authorDouglas Gregor <dgregor@apple.com>
Sat, 8 May 2010 19:15:54 +0000 (19:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 8 May 2010 19:15:54 +0000 (19:15 +0000)
commitf1a8445036a2d047c7165d4170e3058cdeaba6eb
treefb7e6495091f1c263821ff171b0c33028739a4dc
parenta95342c9d4209379c07ac8da553688eacf500f98
Improve overload-candidate diagnostic for a function template that
failed because the explicitly-specified template arguments did not
match its template parameters, e.g.,

test/SemaTemplate/overload-candidates.cpp:18:8: note: candidate
template
      ignored: invalid explicitly-specified argument for template
      parameter 'I'
  void get(const T&);
       ^
test/SemaTemplate/overload-candidates.cpp:20:8: note: candidate
template
      ignored: invalid explicitly-specified argument for 1st template
      parameter
  void get(const T&);
       ^

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103344 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplateDeduction.cpp
test/SemaTemplate/overload-candidates.cpp