This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/8316, 9315, 10136


On Wed, Mar 19, 2003 at 01:17:01PM -0500, Jason Merrill wrote:
> People keep getting confused by the "choosing ..." pedwarn in joust.  This
> is understandable, as the message doesn't read like an error, but is one
> without -fpermissive.  This patch improves the wording so it should
> hopefully be clearer, and also improves how the candidates are identified.
> 
> Tested i686-pc-linux-gnu, applied to trunk.  I'm also applying a patch to
> 3.2 and 3.3 which just changes the wording.

> --- 5872,5882 ----
>           {
>   	  if (warn)
>   	    {
> ! 	      print_z_candidate ("ISO C++ says that ", w, pedwarn);
> ! 	      print_z_candidate ("              and ", l, pedwarn);
> ! 	      pedwarn ("are ambiguous even though the worst conversion \
> ! for the former is better than the worst conversion for the latter",
> ! 		       w->fn, l->fn);
>   	    }
>   	  else
>   	    add_warning (w, l);

Probably you meant to remove w->fn and l->fn?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]