PR c/97463 - ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration
authorMartin Sebor <msebor@redhat.com>
Fri, 23 Oct 2020 18:30:20 +0000 (12:30 -0600)
committerMartin Sebor <msebor@redhat.com>
Fri, 23 Oct 2020 18:30:20 +0000 (12:30 -0600)
commit7991e963239160624b22a12caaacce95d3667e49
tree1076ec6d81f7538459ab5165b355f59b20b3f52a
parentc7c4a2787bae1a3eb239f5e69826727ff5c44373
PR c/97463 - ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration

gcc/c-family/ChangeLog:

PR c/97463
* c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.

gcc/testsuite/ChangeLog:

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