]> granicus.if.org Git - clang/commit
Sema: print qualified name for overload candidates
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 Dec 2016 04:26:57 +0000 (04:26 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 Dec 2016 04:26:57 +0000 (04:26 +0000)
commitfc5c25468d26fb7c7813c0c813e71d56de549b95
treea1688566159a6f381824d317539e962d40519b29
parenta71730a1f3904b79506439c66246eff03e3f2153
Sema: print qualified name for overload candidates

Print the fully qualified names for the overload candidates.  This makes
it easier to tell what the ambiguity is.  Especially if a template
is instantiated after a using namespace, it will not inherit the
namespace where it was declared.  The specialization will give a message
about a partial order being ambiguous for the same (unqualified) name,
which does not help identify the failure.

Addresses PR31450!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290315 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplateDeduction.cpp
test/SemaCXX/template-ambiguous-overload.cpp [new file with mode: 0644]