PR c++/82728 - wrong -Wunused-but-set-variable
authorJason Merrill <jason@redhat.com>
Thu, 11 Jan 2018 19:08:41 +0000 (14:08 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 11 Jan 2018 19:08:41 +0000 (14:08 -0500)
commit03943bbd4a468fb51b8a0102daa815c887a45711
treed12a1dcfa3cae23d8b6a5ca567328d57a251cd47
parentc2893c6e1fbaef291cf69c4444cc45e77069eb3f
PR c++/82728 - wrong -Wunused-but-set-variable

PR c++/82799
PR c++/83690
* call.c (perform_implicit_conversion_flags): Call mark_rvalue_use.
* decl.c (case_conversion): Likewise.
* semantics.c (finish_static_assert): Call
perform_implicit_conversion_flags.

From-SVN: r256550
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-var-27.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-var-28.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-var-29.C [new file with mode: 0644]