Re: C++ PATCH to avoid duplicate overload resolution (related to c++/48481)

2011-07-01 Thread Jason Merrill
OK, thanks. Jason

Re: C++ PATCH to avoid duplicate overload resolution (related to c++/48481)

2011-07-01 Thread Joseph S. Myers
On Fri, 1 Jul 2011, Jakub Jelinek wrote: > OT, if we don't switch to on the fly dependency generation, I think it would > be nice to at least a write a maintainer-script that would regenerate GCC > style rules for dependences in Makefile.in and */Make-lang.in - (and in config/*/t-*) > dependenci

Re: C++ PATCH to avoid duplicate overload resolution (related to c++/48481)

2011-07-01 Thread Jakub Jelinek
On Thu, Jun 30, 2011 at 05:08:49PM -0400, Jason Merrill wrote: > Author: Jason Merrill > Date: Thu Jun 30 00:03:40 2011 -0400 > > PR c++/48481 > * name-lookup.c (struct arg_lookup): Add fn_set. > (add_function): Check it. > (lookup_arg_dependent_1): Initialize it. > > d

C++ PATCH to avoid duplicate overload resolution (related to c++/48481)

2011-06-30 Thread Jason Merrill
While I was looking at 48481 a while back, I noticed that since Doug's change to implement DR 164, in a call subject to argument-dependent lookup we end up considering every function twice. This patch avoids this by using a pointer set to remember which functions we already have in the overloa