https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98487
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:68e51bd0a85794cd437d3e740357dfef84dc560d commit r13-4796-g68e51bd0a85794cd437d3e740357dfef84dc560d Author: Marek Polacek <pola...@redhat.com> Date: Fri Dec 16 12:28:43 2022 -0500 c-family: Fix ICE with -Wsuggest-attribute [PR98487] Here we crash because check_function_format was using TREE_PURPOSE directly rather than using get_attribute_name. PR c/98487 gcc/c-family/ChangeLog: * c-format.cc (check_function_format): Use get_attribute_name. gcc/testsuite/ChangeLog: * c-c++-common/Wsuggest-attribute-1.c: New test.