diff options
author | Jason Merrill <jason@redhat.com> | 2014-12-11 22:49:13 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-12-11 22:49:13 -0500 |
commit | 94a073b2515f43d69404f14cd4a66eaa5301c734 (patch) | |
tree | 743e5ca8ce9e5b2570cd784c2de90d51c8b44bdd /gcc/cp/rtti.c | |
parent | 8c7e9a616ecd878f0d58f19e65fe7a5b55a2b183 (diff) | |
download | gcc-94a073b2515f43d69404f14cd4a66eaa5301c734.zip gcc-94a073b2515f43d69404f14cd4a66eaa5301c734.tar.gz gcc-94a073b2515f43d69404f14cd4a66eaa5301c734.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index aef71f2..2270f3d 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -396,12 +396,9 @@ get_tinfo_decl (tree type) if (variably_modified_type_p (type, /*fn=*/NULL_TREE)) { - if (array_of_runtime_bound_p (type)) - error ("typeid of array of runtime bound"); - else - error ("cannot create type information for type %qT because " - "it involves types of variable size", - type); + error ("cannot create type information for type %qT because " + "it involves types of variable size", + type); return error_mark_node; } |