Skip to content

Commit dbe1a03

Browse files
burblebeetkoeppe
authored andcommitted
CWG2538 Can standard attributes be syntactically ignored?
[dcl.attr.grammar] Replace "may" with "can" inside note. Fixes NB GB 055 (C++23 CD).
1 parent 96c9400 commit dbe1a03

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/declarations.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8483,9 +8483,15 @@
84838483
For an \grammarterm{attribute-token}
84848484
(including an \grammarterm{attribute-scoped-token})
84858485
not specified in this document, the
8486-
behavior is \impldef{behavior of non-standard attributes}.
8487-
Any \grammarterm{attribute-token} that is not recognized by the implementation
8486+
behavior is \impldef{behavior of non-standard attributes};
8487+
any such \grammarterm{attribute-token} that is not recognized by the implementation
84888488
is ignored.
8489+
\begin{note}
8490+
A program is ill-formed if it contains an \grammarterm{attribute}
8491+
specified in \ref{dcl.attr} that violates
8492+
the rules specifying to which entity or statement the attribute can apply or
8493+
the syntax rules for the attribute's \grammarterm{attribute-argument-clause}, if any.
8494+
\end{note}
84898495
An \grammarterm{attribute-token} is reserved for future standardization if
84908496
\begin{itemize}
84918497
\item it is not an \grammarterm{attribute-scoped-token} and

0 commit comments

Comments
 (0)