[Bug c++/44443] [4.6 Regression] -Wunused-but-set-variable problem with unused attribute on type
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 7 17:49:00 GMT 2010
------- Comment #1 from jakub at gcc dot gnu dot org 2010-06-07 17:49 -------
Subject: Bug 44443
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44443
More information about the Gcc-bugs
mailing list