https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71306
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Mon May 30 22:56:43 2016 New Revision: 236902 URL: https://gcc.gnu.org/viewcvs?rev=236902&root=gcc&view=rev Log: PR c++/71306 - bogus -Wplacement-new with an array element gcc/cp/ChangeLog: 2016-05-27 Martin Sebor <mse...@redhat.com> PR c++/71306 * init.c (warn_placement_new_too_small): Handle placement new arguments that are elements of arrays more carefully. Remove a pointless loop. gcc/testsuite/ChangeLog: 2016-05-27 Martin Sebor <mse...@redhat.com> PR c++/71306 * g++.dg/warn/Wplacement-new-size-3.C: New test. Added: trunk/gcc/testsuite/g++.dg/warn/Wplacement-new-size-3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/init.c trunk/gcc/testsuite/ChangeLog