PR c++/83942 - wrong unused warning with static_cast.
authorJason Merrill <jason@redhat.com>
Mon, 29 Jan 2018 16:56:28 +0000 (11:56 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 29 Jan 2018 16:56:28 +0000 (11:56 -0500)
commit82be290b3b9450897c1f328f07ffa71839f4582c
tree9b938cae10dedc4020c96bea53cbe1b0ae539bbd
parentb9921bf0a01418b70e7869c45fd0c3cb7c50f528
PR c++/83942 - wrong unused warning with static_cast.

* cvt.c (ocp_convert): Call mark_rvalue_use.

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