This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/8316, 9315, 10136
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Mar 2003 14:28:10 -0500
- Subject: Re: C++ PATCH for c++/8316, 9315, 10136
- References: <wvlr893te5e.fsf@prospero.boston.redhat.com>
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