https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105074
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>: https://gcc.gnu.org/g:1203e8f7880c9751ece5f5302e413b20f4608a00 commit r12-7868-g1203e8f7880c9751ece5f5302e413b20f4608a00 Author: David Malcolm <dmalc...@redhat.com> Date: Mon Mar 28 20:40:16 2022 -0400 analyzer: fix ICE with incorrect lookup of cgraph node [PR105074] gcc/analyzer/ChangeLog: PR analyzer/105074 * region.cc (ipa_ref_requires_tracking): Drop "context_fndecl", instead using the ref->referring to get the cgraph node of the caller. (symnode_requires_tracking_p): Likewise. gcc/testsuite/ChangeLog: PR analyzer/105074 * gcc.dg/analyzer/pr105074.c: New test. * gcc.dg/analyzer/untracked-1.c (extern_fn_char_ptr): New decl. (test_13): New. Signed-off-by: David Malcolm <dmalc...@redhat.com>