PR c++/90881 - bogus -Wunused-value in unevaluated context.
authorMarek Polacek <polacek@redhat.com>
Sat, 22 Jun 2019 14:43:00 +0000 (14:43 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 22 Jun 2019 14:43:00 +0000 (14:43 +0000)
commit7f3db013dc8264e39339ee4b83900ef25d0d32aa
tree0c32ba3b5879f803ec2e6bce6acc515e16b044e3
parent4b3aa535793363636b0d2819908710fae5025723
PR c++/90881 - bogus -Wunused-value in unevaluated context.

* cvt.c (convert_to_void): Don't emit unused warnings in
an unevaluated context.

* g++.dg/cpp0x/Wunused-value1.C: New test.

From-SVN: r272585
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wunused-value1.C [new file with mode: 0644]