https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77804
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Tue Oct 4 17:55:43 2016 New Revision: 240755 URL: https://gcc.gnu.org/viewcvs?rev=240755&root=gcc&view=rev Log: PR c++/77804 - Internal compiler error on incorrect initialization of new-d array gcc/cp/ChangeLog: PR c++/77804 * init.c (warn_placement_new_too_small): Avoid assuming an array type has a constant size. gcc/testsuite/ChangeLog: PR c++/77804 * g++.dg/warn/Wplacement-new-size-4.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/Wplacement-new-size-4.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/init.c branches/gcc-6-branch/gcc/testsuite/ChangeLog