[cfe-commits] PATCH: Fix PR5751 by looking through using decls during overload resolution

Chandler Carruth chandlerc at google.com
Mon Dec 28 15:52:37 PST 2009

On Mon, Dec 28, 2009 at 11:41 AM, John McCall <rjmccall at apple.com> wrote:
> On Dec 28, 2009, at 1:51 AM, Chandler Carruth wrote:
>> Attached is a patch that seems to fix PR5751 by looking through using
>> decls when resolving overloaded candidate functions. Does this look
>> correct?
> We don't care about the declaring context when collecting associated namespaces;  that's a miswording in the standard.  I've made a comment in the bug to that effect.

Fixed, thanks for the review. Updated patch is attached.

>> Should this perhaps be factored into UnresolvedLookupExpr?
> No;  clients should be forced to handle using decls.  If the typesystem let me assert this, I would do it.
>> In ResolveAddressOfOverloadedFunction, I'm applying the logic even for
>> member functions, is that correct?
> Yes, I think so.
> Looks good overall.
> John.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr5751.2.patch
Type: application/octet-stream
Size: 3645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091228/55619f04/attachment.obj>

More information about the cfe-commits mailing list