https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101585
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5446b933bc1e9449aa408eb66c31b6fcdbe74214 commit r11-9788-g5446b933bc1e9449aa408eb66c31b6fcdbe74214 Author: Martin Sebor <mse...@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. (cherry picked from commit a0f9a5dcc3bbe6c7de499e17d201d0f2cb512649)