re PR c++/54583 (Spurious warning: value computed is not used with variable-size...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 31 Oct 2012 19:14:39 +0000 (19:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 31 Oct 2012 19:14:39 +0000 (19:14 +0000)
commit03d31730bfa422561a7e62915eb2c304bac27f19
treed339efb27257d9e65568af0b81ffe366c045baa2
parent4d64ce5c057fe0d3cd601d3e6b03b76f2989f13d
re PR c++/54583 (Spurious warning: value computed is not used with variable-size array)

/cp
2012-10-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54583
* tree.c (build_cplus_array_type): Set TREE_NO_WARNING on the
TYPE_SIZE of VLAs.

/testsuite
2012-10-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54583
* g++.dg/ext/vla13.C: New.

From-SVN: r193043
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vla13.C [new file with mode: 0644]