* decl.c (create_array_type_for_decl): Only warn about invalid
commit4f50e8b360dcd97dde8c98f689a290fa3dcab9b6
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Mar 2014 20:00:14 +0000 (7 20:00 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Mar 2014 20:00:14 +0000 (7 20:00 +0000)
tree7eb9de0c86e9f4c54e5cd212d59aa19b658e8b0b
parenteb4253950fbb87a49cbb10acb812bfc2dccbb881
* decl.c (create_array_type_for_decl): Only warn about invalid
C++1y VLA if flag_iso or warn_vla>0.
(grokdeclarator): Likewise.
* pt.c (tsubst): Likewise.
* semantics.c (finish_decltype_type): Likewise.
* typeck.c (cxx_sizeof_or_alignof_type): Likewise.
(cp_build_addr_expr_1): Likewise.
* init.c (build_new_1): Improve diagnostics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208411 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/ext/vla1.C
gcc/testsuite/g++.dg/ext/vla5.C
gcc/testsuite/g++.dg/ext/vla8.C
gcc/testsuite/g++.dg/init/new35.C
gcc/testsuite/g++.dg/init/new37.C