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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Are you sure?  Aren't unknown attributes supposed to be ignored?
"For an attribute-token (including an attribute-scoped-token) not specified in
this document, the behavior is implementation-defined. Any attribute-token that
is not recognized by the implementation is ignored. [Note:
Each implementation should choose a distinctive name for the
attribute-namespace in an attribute-scoped-token.  — end note]"
E.g. maybe_unused attribute is not specified in C++11 or C++14 documents, so
they have implementation-defined behavior if our implementation recognizes it,
or ignored if it doesn't, not ill-formed.

Reply via email to