This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44361] -Wunused-but-set-variable vs. explicit void cast
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2010 15:02:56 -0000
- Subject: [Bug c++/44361] -Wunused-but-set-variable vs. explicit void cast
- References: <bug-44361-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2010-06-05 15:02 -------
Subject: Bug 44361
Author: jakub
Date: Sat Jun 5 15:02:32 2010
New Revision: 160318
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160318
Log:
PR c++/44361
* c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
* c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
statement expression.
* c-c++-common/Wunused-var-9.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/Wunused-var-9.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44361