]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
init.c (build_vec_init): Call ubsan_instrument_bounds to check whether an initializer...
authorJason Merrill <jason@redhat.com>
Thu, 8 Jan 2015 20:58:39 +0000 (15:58 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 8 Jan 2015 20:58:39 +0000 (15:58 -0500)
commit46621807e9bf7bc94302cda27852e33a3c766112
treea45b718f1a16735546118a03e2e94c044731098a
parentd9ebff44bb8217b3982c987072ab5a76c6de74e9
init.c (build_vec_init): Call ubsan_instrument_bounds to check whether an initializer-list is too big...

* init.c (build_vec_init): Call ubsan_instrument_bounds to check
whether an initializer-list is too big for a VLA.
(throw_bad_array_length): Remove.
* cp-tree.h: Remove prototype.

From-SVN: r219359
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/ubsan/vla-1.C [new file with mode: 0644]