This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54583] Spurious warning: value computed is not used with variable-size array


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54583

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-31 19:14:44 UTC ---
Author: paolo
Date: Wed Oct 31 19:14:39 2012
New Revision: 193043

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193043
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vla13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]