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 <ja...@redhat.com>
PR c++/89622
* call.c (joust): Call print_z_candidate only if pedwarn returned
true.
OK.
Jason