Remove N3639 "array of runtime length" from -std=c++14.
authorJason Merrill <jason@redhat.com>
Fri, 12 Dec 2014 03:49:13 +0000 (22:49 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 12 Dec 2014 03:49:13 +0000 (22:49 -0500)
commit94a073b2515f43d69404f14cd4a66eaa5301c734
tree743e5ca8ce9e5b2570cd784c2de90d51c8b44bdd
parent8c7e9a616ecd878f0d58f19e65fe7a5b55a2b183
Remove N3639 "array of runtime length" from -std=c++14.

gcc/cp/
* decl.c (compute_array_index_type): VLAs are not part of C++14.
(create_array_type_for_decl, grokdeclarator): Likewise.
* lambda.c (add_capture): Likewise.
* pt.c (tsubst): Likewise.
* rtti.c (get_tinfo_decl): Likewise.
* semantics.c (finish_decltype_type): Likewise.
* typeck.c (cxx_sizeof_or_alignof_type): Likewise.
(cp_build_addr_expr_1): Likewise.
* init.c (build_vec_init): Don't throw bad_array_length.
gcc/c-family/
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
we aren't complaining about VLAs.
libstdc++-v3/
* libsupc++/new (bad_array_length): Move...
* bad_array_length.cc: ...here.
* cxxabi.h, eh_aux_runtime.cc (__cxa_throw_bad_array_new_length): Also
move to bad_array_length.cc.

* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
we aren't complaining about VLAs.

From-SVN: r218655
38 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/lambda.c
gcc/cp/pt.c
gcc/cp/rtti.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/Wattributes1.C
gcc/testsuite/g++.dg/cpp0x/initlist26.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx11-neg.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98-neg.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
gcc/testsuite/g++.dg/cpp1y/feat-vla.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C
gcc/testsuite/g++.dg/cpp1y/vla-initlist1.C
gcc/testsuite/g++.dg/cpp1y/vla1.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/vla10.C
gcc/testsuite/g++.dg/cpp1y/vla11.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/vla12.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/vla13.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/vla2.C
gcc/testsuite/g++.dg/cpp1y/vla3.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/vla4.C
gcc/testsuite/g++.dg/cpp1y/vla5.C
gcc/testsuite/g++.dg/cpp1y/vla8.C
gcc/testsuite/g++.dg/cpp1y/vla9.C
gcc/testsuite/g++.dg/ext/vla11.C
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/bad_array_length.cc
libstdc++-v3/libsupc++/cxxabi.h
libstdc++-v3/libsupc++/eh_aux_runtime.cc
libstdc++-v3/libsupc++/new