https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94755
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:26d76be7af6db75aaab662f4e93395f4ff8acb38 commit r10-7989-g26d76be7af6db75aaab662f4e93395f4ff8acb38 Author: Jakub Jelinek <ja...@redhat.com> Date: Mon Apr 27 16:05:03 2020 +0200 c-family: Fix ICE on __builtin_speculation_safe_value () [PR94755] When this builtin has no parameters, speculation_safe_value_resolve_call returns BUILT_IN_NONE, but resolve_overloaded_builtin uselessly dereferences the first param just to return error_mark_node immediately. The following patch rearranges it so that we only read the first parameter if fncode is not BUILT_IN_NONE. 2020-04-27 Jakub Jelinek <ja...@redhat.com> PR c/94755 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for fncode == BUILT_IN_NONE before initialization of first_param. * c-c++-common/pr94755.c: New test.