re PR c++/39803 (Bogus 'unused value' warning on declarations of non-POD arrays)
commit311fa510e6d737db7727ab6f4bd1c5598f2b217c
authorLe-Chun Wu <lcwu@gcc.gnu.org>
Mon, 20 Apr 2009 21:13:08 +0000 (20 21:13 +0000)
committerLe-Chun Wu <lcwu@gcc.gnu.org>
Mon, 20 Apr 2009 21:13:08 +0000 (20 21:13 +0000)
tree7d0125e6f6b8ac5da38604c980e416aa7193ee02
parent6e0f0975e5368803451b2642fb4ecc598310a2e4
re PR c++/39803 (Bogus 'unused value' warning on declarations of non-POD arrays)

        PR c++/39803
* gcc/cp/init.c (build_vec_init): Set TREE_NO_WARNING on the
compiler-generated INDIRECT_REF expression.
* gcc/testsuite/g++.dg/warn/Wunused-14.C: New test.

From-SVN: r146454
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-14.C [new file with mode: 0644]