re PR c++/89622 (G++ prints notes, but no warning or error)
commit560a46a5914a3cc55ade0cb0fe3d8e36d85d01cd
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Mar 2019 07:42:51 +0000 (8 08:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Mar 2019 07:42:51 +0000 (8 08:42 +0100)
tree3952878b0b5439a6a72ebad3975d33a1aa0b2cc3
parent1d28bbdf471936be77705fbf27ac6934b67382f3
re PR c++/89622 (G++ prints notes, but no warning or error)

PR c++/89622
* call.c (joust): Call print_z_candidate only if pedwarn returned
true.

* g++.dg/warn/pr89622.C: New test.

From-SVN: r269481
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr89622.C [new file with mode: 0644]