diff options
author | Martin Sebor <msebor@redhat.com> | 2015-11-06 01:08:53 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2015-11-05 18:08:53 -0700 |
commit | 906f9ad995368b4891186c07ed3c5c2fd5f53bea (patch) | |
tree | 290722de96f765a33eafce59384bc6741c175d1a /gcc/tree.h | |
parent | 925b6a76e2d352c7a59119a4179db953ad30af00 (diff) | |
download | gcc-906f9ad995368b4891186c07ed3c5c2fd5f53bea.zip gcc-906f9ad995368b4891186c07ed3c5c2fd5f53bea.tar.gz gcc-906f9ad995368b4891186c07ed3c5c2fd5f53bea.tar.bz2 |
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.
From-SVN: r229831
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions