]> 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)
committerRichard Biener <rguenther@suse.de>
Fri, 1 Aug 2025 07:37:57 +0000 (09:37 +0200)
commit5768bc24ca731943755ab937abc7617950e80037
tree7c07198e3f233c121166127b3cd7f0a2e7c51037
parent3913d958e203dbf3c4a0527e7bc03c684e3f05a4
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.

(cherry picked from commit 02fa088f5b61fb5ddfff9e2dc0c0404450e7c6a4)
gcc/c/c-typeck.cc
gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-6.c [new file with mode: 0644]