This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r160387 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 07 Jun 2010 17:49:06 -0000
- Subject: r160387 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: jakub
Date: Mon Jun 7 17:49:06 2010
New Revision: 160387
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160387
Log:
PR c++/44443
* decl.c (initialize_local_var): If TREE_USED is set on the type,
set also DECL_READ_P on the decl.
* c-c++-common/Wunused-var-11.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/Wunused-var-11.c
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog