re PR c++/70488 (ICE in tree.c:7345 triggered by warning of placement new too small...
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Apr 2016 15:27:11 +0000 (17:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Apr 2016 15:27:11 +0000 (17:27 +0200)
commit0f8754352485c6aaa6a6b85ce252585ae1eb31d7
treec676f74751d79ea607d57b64284bf39211f533b7
parent41d146597caea6d5cab6def07a8b127de7b2099c
re PR c++/70488 (ICE in tree.c:7345 triggered by warning of placement new too small on VLA)

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.

Co-Authored-By: Marek Polacek <polacek@redhat.com>
From-SVN: r234676
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/new47.C [new file with mode: 0644]