[Bug middle-end/103365] ICE in register_scoped_attribute, at attribs.c:390
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 22 21:14:35 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103365
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[12 Regression] ICE in |ICE in
|register_scoped_attribute, |register_scoped_attribute,
|at attribs.c:390 |at attribs.c:390
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code
Last reconfirmed| |2021-11-22
Ever confirmed|0 |1
Component|c |middle-end
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
#pragma GCC diagnostic ignored_attributes "n::_a"
There is a check to make sure the attribute isn't named __a__ but the assert
only checks that the attribute starts with _.
Note you can also reproduce the ICE with the following option passed to GCC:
-Wno-attributes=n::_a
Confirmed, not a regression as the warning option is new.
More information about the Gcc-bugs
mailing list