https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93775
--- Comment #2 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:d8cde6f9c223f1b6d4f4e4e07088f08a629b7c2a commit r10-6686-gd8cde6f9c223f1b6d4f4e4e07088f08a629b7c2a Author: David Malcolm <dmalc...@redhat.com> Date: Mon Feb 17 03:06:14 2020 -0500 analyzer: fix ICE on function pointer casts [PR 93775] PR analyzer/93775 reports an ICE in cgraph_node::get when -fanalyzer is used on code that calls a function pointer that was generated via a cast from a non-function. This patch fixes it by bulletproofing region_model::get_fndecl_for_call for the case where the code_region's get_tree_for_child_region returns NULL. gcc/analyzer/ChangeLog: PR analyzer/93775 * region-model.cc (region_model::get_fndecl_for_call): Handle the case where the code_region's get_tree_for_child_region returns NULL. gcc/testsuite/ChangeLog: PR analyzer/93775 * gcc.dg/analyzer/20020129-1.c: New test.