Skip to content

Commit e34d50d

Browse files
committed
CWG2538 Can standard attributes be syntactically ignored?
Also fixes NB GB 055 (C++23 CD).
1 parent 3f47d25 commit e34d50d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/declarations.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -8408,9 +8408,15 @@
84088408
For an \grammarterm{attribute-token}
84098409
(including an \grammarterm{attribute-scoped-token})
84108410
not specified in this document, the
8411-
behavior is \impldef{behavior of non-standard attributes}.
8412-
Any \grammarterm{attribute-token} that is not recognized by the implementation
8411+
behavior is \impldef{behavior of non-standard attributes};
8412+
any such \grammarterm{attribute-token} that is not recognized by the implementation
84138413
is ignored.
8414+
\begin{note}
8415+
A program is ill-formed if it contains an \grammarterm{attribute}
8416+
specified in \ref{dcl.attr} that violates
8417+
the rules specifying to which entity or statement the attribute may apply or
8418+
the syntax rules for the attribute's \grammarterm{attribute-argument-clause}, if any.
8419+
\end{note}
84148420
An \grammarterm{attribute-token} is reserved for future standardization if
84158421
\begin{itemize}
84168422
\item it is not an \grammarterm{attribute-scoped-token} and

0 commit comments

Comments
 (0)