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

Chandler Carruth chandlerc at google.com
Mon Dec 28 01:51:44 PST 2009


Attached is a patch that seems to fix PR5751 by looking through using
decls when resolving overloaded candidate functions. Does this look
correct? Should this perhaps be factored into UnresolvedLookupExpr? In
ResolveAddressOfOverloadedFunction, I'm applying the logic even for
member functions, is that correct?

Also, this includes a test case more specifically targeted at overload
resolution rather than templates. Would it be useful to include
template-specific test case here or is that covered elsewhere? And is
using-decl-1 the correct place to put the test case? I remember Chris
indicating he wanted fewer files and longer tests these days...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr5751.patch
Type: application/octet-stream
Size: 3306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091228/19b8cde4/attachment.obj>


More information about the cfe-commits mailing list