* init.c (build_vec_init): Call ubsan_instrument_bounds to check
commit2b9b77fb15e7f041e548b779c9db2665dce6844f
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2015 20:58:39 +0000 (8 20:58 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2015 20:58:39 +0000 (8 20:58 +0000)
treea45b718f1a16735546118a03e2e94c044731098a
parentb6c02b623a6aa2cd4e3603d8415852aa01aee0a1
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219359 138bc75d-0d04-0410-961f-82ee72b054a4
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]