aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2015-11-06 01:08:53 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2015-11-05 18:08:53 -0700
commit906f9ad995368b4891186c07ed3c5c2fd5f53bea (patch)
tree290722de96f765a33eafce59384bc6741c175d1a /gcc/omp-low.c
parent925b6a76e2d352c7a59119a4179db953ad30af00 (diff)
downloadgcc-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/omp-low.c')
0 files changed, 0 insertions, 0 deletions