diff options
author | Martin Sebor <msebor@redhat.com> | 2021-08-14 13:25:41 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-08-14 13:25:41 -0600 |
commit | 96194a07bdbc57dd9733892a791d87dbe25f0802 (patch) | |
tree | c3414d3d61a97e5d4d9dc33abe0f09149245f760 /README | |
parent | 240f07805db27cfc746276039c5edccb4c031070 (diff) | |
download | gcc-96194a07bdbc57dd9733892a791d87dbe25f0802.zip gcc-96194a07bdbc57dd9733892a791d87dbe25f0802.tar.gz gcc-96194a07bdbc57dd9733892a791d87dbe25f0802.tar.bz2 |
Diagnose mismatches between array and scalar new and delete [PR101791].
Resolves:
PR middle-end/101791 - missing warning on a mismatch between scalar and array forms of new and delete
gcc/ChangeLog:
PR middle-end/101791
* gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
to valid_new_delete_pair_p.
* tree.c (valid_new_delete_pair_p): Add argument.
* tree.h (valid_new_delete_pair_p): Same.
gcc/testsuite/ChangeLog:
PR middle-end/101791
* g++.dg/warn/Wmismatched-new-delete-6.C: New test.
* g++.dg/warn/Wmismatched-new-delete-7.C: New test.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions