summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-06-11 21:21:57 +0000
committerHans Wennborg <hans@hanshq.net>2015-06-11 21:21:57 +0000
commit64937c6f97fc41c671382576030866239520bc7a (patch)
tree2d548bffb41ba9b2ed35229db94957c4377924cc /libcxx/test/std
parent3a547f15ae6d47d0f2808f554bf8de5d1d915d27 (diff)
downloadbcm5719-llvm-64937c6f97fc41c671382576030866239520bc7a.tar.gz
bcm5719-llvm-64937c6f97fc41c671382576030866239520bc7a.zip
[ms] Do lookup in dependent base classes also when overload resolution fails (PR23810)
This patch does two things in order to enable compilation of the problematic code in PR23810: 1. In Sema::buildOverloadedCallSet, it postpones lookup for MS mode when no viable candidate is found in the overload set. Previously, lookup would only be postponed here if the overload set was empty. 2. Make BuildRecoveryCallExpr call Sema::DiagnoseEmptyLookup under more circumstances. There is a comment in DiagnoseTwoPhaseLookup that says "Don't diagnose names we find in classes; we get much better diagnostics for these from DiagnoseEmptyLookup." The problem was that DiagnoseEmptyLookup might not get called later, and we failed to recover. Differential Revision: http://reviews.llvm.org/D10369 llvm-svn: 239558
Diffstat (limited to 'libcxx/test/std')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud