https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94733
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:7291b2edf6f87fba839b0d10c04b2562a5f6bd60 commit r10-7922-g7291b2edf6f87fba839b0d10c04b2562a5f6bd60 Author: Marek Polacek <pola...@redhat.com> Date: Thu Apr 23 14:38:58 2020 -0400 c-family: Fix ICE on attribute with -fgnu-tm [PR94733] find_tm_attribute was using TREE_PURPOSE to get the attribute name, which is breaking now that we preserve the C++11-style attribute format past decl_attributes. So use get_attribute_name which can handle both formats of attributes. PR c++/94733 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of TREE_PURPOSE. * g++.dg/tm/attrib-5.C: New test.