[Bug c/101585] [11/12 Regression] Bad interaction of -fsanitize=undefined and -Wvla-parameters

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 27 19:52:45 GMT 2021


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

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

https://gcc.gnu.org/g:a0f9a5dcc3bbe6c7de499e17d201d0f2cb512649

commit r12-2541-ga0f9a5dcc3bbe6c7de499e17d201d0f2cb512649
Author: Martin Sebor <msebor@redhat.com>
Date:   Tue Jul 27 13:51:55 2021 -0600

    Use OEP_DECL_NAME when comparing VLA bounds [PR101585].

    Resolves:
    PR c/101585 - Bad interaction of -fsanitize=undefined and -Wvla-parameters

    gcc/c-family:

            PR c/101585
            * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.

    gcc/testsuite:
            PR c/101585
            * gcc.dg/Wvla-parameter-13.c: New test.


More information about the Gcc-bugs mailing list