PR middle-end/97861 - ICE on an invalid redeclaration of a function with attribute...
authorMartin Sebor <msebor@redhat.com>
Fri, 20 Nov 2020 21:35:25 +0000 (14:35 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 20 Nov 2020 21:35:25 +0000 (14:35 -0700)
commit27c5416fc8a4c2b33a0d6b6a26da2518791e0464
tree793b046a37ba17a2477970f92ea36c6f07ce5eac
parentba23e045fcb820e8d32dee361c4d048604d8d599
PR middle-end/97861 - ICE on an invalid redeclaration of a function with attribute access

gcc/c-family/ChangeLog:
* c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
with fewer arguments.

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