Skip to content

Commit

Permalink
[dcl.spec.general,dcl.fct.spec] Clarify duplication of decl-specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer authored and tkoeppe committed Sep 26, 2024
1 parent 9243ba5 commit 4930897
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@
same type.

\pnum
Each \grammarterm{decl-specifier}
shall appear at most once in a complete \grammarterm{decl-specifier-seq},
except that \tcode{long} may appear twice.
At most one of each of the \grammarterm{decl-specifier}s
\keyword{friend}, \keyword{typedef}, or \keyword{inline}
shall appear in a \grammarterm{decl-specifier-seq}.
At most one of
the \keyword{constexpr}, \keyword{consteval}, and \keyword{constinit} keywords
shall appear in a \grammarterm{decl-specifier-seq}.
Expand Down Expand Up @@ -651,6 +651,9 @@
A
\grammarterm{function-specifier}
can be used only in a function declaration.
At most one \grammarterm{explicit-specifier} and
at most one \keyword{virtual} keyword shall appear in
a \grammarterm{decl-specifier-seq}.

\begin{bnf}
\nontermdef{function-specifier}\br
Expand Down

0 comments on commit 4930897

Please sign in to comment.