]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/55643 ([C++11] incorrect "warning: variable ‘myVar’ set but not used"...
authorJakub Jelinek <jakub@redhat.com>
Tue, 11 Dec 2012 19:01:45 +0000 (20:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Dec 2012 19:01:45 +0000 (20:01 +0100)
commit759deff3ac0e0c8a7680dd106e05394ad219f84b
treecd397745f2b22d3b1c055b04416813a614eb5f4d
parent597f805e11219b292712f962c90fd4f61f10a046
re PR c++/55643 ([C++11] incorrect  "warning: variable ‘myVar’ set but not used" with an "enum class"-typed variable is casted to double for the use)

PR c++/55643
* expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR.

* g++.dg/warn/Wunused-var-19.C: New test.

From-SVN: r194415
gcc/cp/ChangeLog
gcc/cp/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-19.C [new file with mode: 0644]