This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55643] [4.7/4.8 Regression] [C++11] incorrect "warning: variable âmyVarâ set but not used" with an "enum class"-typed variable is casted to double for the use


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-11 19:06:23 UTC ---
Author: jakub
Date: Tue Dec 11 19:06:19 2012
New Revision: 194416

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194416
Log:
    PR c++/55643
    * expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR.

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

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/warn/Wunused-var-19.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/expr.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]