https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71306
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Tue May 31 17:24:22 2016 New Revision: 236934 URL: https://gcc.gnu.org/viewcvs?rev=236934&root=gcc&view=rev Log: PR c++/71306 - bogus -Wplacement-new with an array element gcc/cp/ChangeLog: 2016-05-31 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-31 Martin Sebor <mse...@redhat.com> PR c++/71306 * g++.dg/warn/Wplacement-new-size-3.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/Wplacement-new-size-3.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/init.c branches/gcc-6-branch/gcc/testsuite/ChangeLog