[Bug c++/70488] [6 Regression] ICE in tree.c:7345 triggered by warning of placement new too small on VLA
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 1 15:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70488
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Apr 1 15:27:11 2016
New Revision: 234676
URL: https://gcc.gnu.org/viewcvs?rev=234676&root=gcc&view=rev
Log:
PR c++/70488
* init.c (warn_placement_new_too_small): Test whether
DECL_SIZE_UNIT or TYPE_SIZE_UNIT are integers that fit into uhwi.
* g++.dg/init/new47.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/init/new47.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list