PR c/96596 - ICE in match_builtin_function_types on a declaration of a built-in with...
authorMartin Sebor <msebor@redhat.com>
Fri, 28 Aug 2020 14:26:32 +0000 (08:26 -0600)
committerMartin Sebor <msebor@redhat.com>
Fri, 28 Aug 2020 14:26:32 +0000 (08:26 -0600)
commitba6373a39782139789f0eeba7c0e607ec6dfb477
tree08e4bc7b94b6f94a7c0be13f89b223d569de5db7
parentcb3c3d63315ceb4dc262e5efb83b42c73c43387d
PR c/96596 - ICE in match_builtin_function_types on a declaration of a built-in with invalid array argument

gcc/c/ChangeLog:

PR c/96596
* c-decl.c (match_builtin_function_types): Avoid dealing with erroneous
argument type.

gcc/testsuite/ChangeLog:

PR c/96596
* gcc.dg/Wbuiltin-declaration-mismatch-16.c: New test.
gcc/c/c-decl.c
gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-16.c [new file with mode: 0644]