PR c/97955 - ICE in build_array_type_1 on invalid redeclaration of function with...
authorMartin Sebor <msebor@redhat.com>
Tue, 24 Nov 2020 22:23:57 +0000 (15:23 -0700)
committerMartin Sebor <msebor@redhat.com>
Tue, 24 Nov 2020 22:23:57 +0000 (15:23 -0700)
commit211d68dda14d6b773ad648909ef9dd0d65ec2053
tree85f5ed7c240731dceefdab3383ddcb796d22ea8e
parentf2a5cdff0457077cc0ef44a7c52c7dcf3fcaeadb
PR c/97955 - ICE in build_array_type_1 on invalid redeclaration of function with VLA parameter

gcc/c-family/ChangeLog:

* c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.

gcc/testsuite/ChangeLog:

* gcc.dg/pr97955.c: New test.
gcc/c-family/c-warn.c
gcc/testsuite/gcc.dg/pr97955.c [new file with mode: 0644]