https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101791

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:96194a07bdbc57dd9733892a791d87dbe25f0802

commit r12-2908-g96194a07bdbc57dd9733892a791d87dbe25f0802
Author: Martin Sebor <mse...@redhat.com>
Date:   Sat Aug 14 13:25:41 2021 -0600

    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.
  • [Bug middle-end/101791] missing... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to