PR c++/87357 - missing -Wconversion warning
authorMarek Polacek <polacek@redhat.com>
Wed, 19 Sep 2018 16:59:51 +0000 (16:59 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 19 Sep 2018 16:59:51 +0000 (16:59 +0000)
commitfce33808678df40cce69c15141926342f8a6f47e
treee6d37b69917713dcc5c8791dc8d9031993c251ec
parent3c2a8ed0d9a56a45a67f87c5fa3a093c6852e62b
PR c++/87357 - missing -Wconversion warning

PR c++/87357 - missing -Wconversion warning
* decl.c (grok_op_properties): Remove diagnostic parts mentioning
a conversion to a reference to void.  Use
same_type_ignoring_top_level_qualifiers_p rather than comparing types
directly.

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

From-SVN: r264425
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wconversion5.C [new file with mode: 0644]