Skip to content

Commit 59fbb4f

Browse files
committed
[dcl.spec.general,dcl.fct.spec] Clarify duplication of decl-specifiers
1 parent deec10b commit 59fbb4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/declarations.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@
285285
same type.
286286

287287
\pnum
288-
Each \grammarterm{decl-specifier}
289-
shall appear at most once in a complete \grammarterm{decl-specifier-seq},
290-
except that \tcode{long} may appear twice.
288+
At most one of each of the \grammarterm{decl-specifier}s
289+
\keyword{friend}, \keyword{typedef}, or \keyword{inline}
290+
shall appear in a \grammarterm{decl-specifier-seq}.
291291
At most one of
292292
the \keyword{constexpr}, \keyword{consteval}, and \keyword{constinit} keywords
293293
shall appear in a \grammarterm{decl-specifier-seq}.
@@ -518,6 +518,8 @@
518518
A
519519
\grammarterm{function-specifier}
520520
can be used only in a function declaration.
521+
At most one \grammarterm{function-specifier} shall appear in
522+
a \grammarterm{decl-specifier-seq}.
521523

522524
\begin{bnf}
523525
\nontermdef{function-specifier}\br

0 commit comments

Comments
 (0)