[C++ PATCH] Fix up joust diagnostics (PR c++/89622)
Jason Merrill
jason@redhat.com
Fri Mar 8 04:43:00 GMT 2019
On 3/7/19 2:25 PM, Jakub Jelinek wrote:
> Hi!
>
> If no diagnostics is emitted by this pedwarn, whether because of
> -Wno-system-headers and location from system headers, or because of -w
> etc., we still emit the follow-up messages as if the pedwarn emitted
> something.
>
> The following patch makes it conditional on pedwarn returning true (i.e.
> that something has been actually printed).
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2019-03-07 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/89622
> * call.c (joust): Call print_z_candidate only if pedwarn returned
> true.
OK.
Jason
More information about the Gcc-patches
mailing list