https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112339

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 56488
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56488&action=edit
gcc14-pr112339.patch

Indeed.  For -Wno-attributes= registered attributes we don't really parse their
arguments and there is no handler for them, so if they are added, their
argument will be always error_mark_node and they'll just confuse any
lookup_attribute done later.

I must say I'm a little bit afraid of what happens when one uses
-Wno-attributes=gnu:: or -Wno-attributes=gnu::some_standard_gnu_attribute,
but this patch shouldn't make that worse.

Reply via email to