OSDN Git Service

PR c++/44443
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jun 2010 17:49:06 +0000 (17:49 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jun 2010 17:49:06 +0000 (17:49 +0000)
commit5a0d50b10ddb82a6444ca14f3e2ea63b4095a01f
tree9683a15333492961769147bbff3993b18d63fafa
parent93794b4597417997adceaa745970e90d10156024
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160387 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-11.c [new file with mode: 0644]