summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-12-22 04:26:57 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-12-22 04:26:57 +0000
commit78704fb6dcf2d0dfc5d6112ef381620c82e9a514 (patch)
tree800c41399202e9c9e862732dc91c860be3bf992a /clang/lib/Sema/SemaOverload.cpp
parent9d3248b76560a0449a24f15a9b50a6ce80ea8925 (diff)
downloadbcm5719-llvm-78704fb6dcf2d0dfc5d6112ef381620c82e9a514.tar.gz
bcm5719-llvm-78704fb6dcf2d0dfc5d6112ef381620c82e9a514.zip
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! llvm-svn: 290315
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index fb378b86af7..5252e6a26c9 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -9160,7 +9160,7 @@ void Sema::NoteOverloadCandidate(NamedDecl *Found, FunctionDecl *Fn,
std::string FnDesc;
OverloadCandidateKind K = ClassifyOverloadCandidate(*this, Found, Fn, FnDesc);
PartialDiagnostic PD = PDiag(diag::note_ovl_candidate)
- << (unsigned) K << FnDesc;
+ << (unsigned) K << Fn << FnDesc;
HandleFunctionTypeMismatch(PD, Fn->getType(), DestType);
Diag(Fn->getLocation(), PD);
OpenPOWER on IntegriCloud