r236902 - in /trunk/gcc: cp/ChangeLog cp/init.c...
msebor@gcc.gnu.org
msebor@gcc.gnu.org
Mon May 30 22:56:00 GMT 2016
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 <msebor@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 <msebor@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
More information about the Gcc-cvs
mailing list