https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97548
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 commit r11-9396-g7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 Author: Martin Sebor <mse...@redhat.com> Date: Thu Jul 15 10:11:23 2021 -0600 Avoid -Wvla-parameter for nontrivial bounds [PR97548]. Resolves: PR c/101289 - bogus -Wvla-paramater warning when using const for vla param PR c/97548 - bogus -Wvla-parameter on a bound expression involving a parameter gcc/c-family/ChangeLog: PR c/101289 PR c/97548 * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME. gcc/c/ChangeLog: PR c/101289 PR c/97548 * c-decl.c (get_parm_array_spec): Strip nops. gcc/ChangeLog: PR c/101289 PR c/97548 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME. (operand_compare::verify_hash_value): Same. * tree-core.h (OEP_DECL_NAME): New. gcc/testsuite/ChangeLog: * gcc.dg/Wvla-parameter-12.c: New test.