r229831 - in /trunk/gcc: cp/ChangeLog cp/init.c...
msebor@gcc.gnu.org
msebor@gcc.gnu.org
Fri Nov 6 01:08:00 GMT 2015
Author: msebor
Date: Fri Nov 6 01:08:53 2015
New Revision: 229831
URL: https://gcc.gnu.org/viewcvs?rev=229831&root=gcc&view=rev
Log:
PR c++/67942 - diagnose placement new buffer overflow
gcc/cp/
* cp/init.c (warn_placement_new_too_small): Avoid assuming
the size of the first operand of placement new or its type
is known.
gcc/testsuite/
* g++.dg/warn/Wplacement-new-size.C: Exercise placement new
invocations where the size of the destination buffer object
or its type (or both) is unknown.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/warn/Wplacement-new-size.C
More information about the Gcc-cvs
mailing list