]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Fix crash in c-typeck.cc convert_arguments with indirect calls
authorFlorian Weimer <fweimer@redhat.com>
Fri, 2 May 2025 09:39:29 +0000 (11:39 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 2 May 2025 09:39:29 +0000 (11:39 +0200)
commit02fa088f5b61fb5ddfff9e2dc0c0404450e7c6a4
tree1cd4118e1f727a9915159aa24d9766b3e7999e86
parentcdfa963cfc6849ff3ceb911f293201882aeef22e
c: Fix crash in c-typeck.cc convert_arguments with indirect calls

gcc/c/

PR c/120055
* c-typeck.cc (convert_arguments): Check if fundecl is null
before checking for builtin function declaration.

gcc/testsuite/

* gcc.dg/Wdeprecated-non-prototype-6.c: New test.
gcc/c/c-typeck.cc
gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-6.c [new file with mode: 0644]