Skip to content

Commit 4930897

Browse files
jensmaurertkoeppe
authored andcommitted
[dcl.spec.general,dcl.fct.spec] Clarify duplication of decl-specifiers
1 parent 9243ba5 commit 4930897

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/declarations.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@
418418
same type.
419419

420420
\pnum
421-
Each \grammarterm{decl-specifier}
422-
shall appear at most once in a complete \grammarterm{decl-specifier-seq},
423-
except that \tcode{long} may appear twice.
421+
At most one of each of the \grammarterm{decl-specifier}s
422+
\keyword{friend}, \keyword{typedef}, or \keyword{inline}
423+
shall appear in a \grammarterm{decl-specifier-seq}.
424424
At most one of
425425
the \keyword{constexpr}, \keyword{consteval}, and \keyword{constinit} keywords
426426
shall appear in a \grammarterm{decl-specifier-seq}.
@@ -651,6 +651,9 @@
651651
A
652652
\grammarterm{function-specifier}
653653
can be used only in a function declaration.
654+
At most one \grammarterm{explicit-specifier} and
655+
at most one \keyword{virtual} keyword shall appear in
656+
a \grammarterm{decl-specifier-seq}.
654657

655658
\begin{bnf}
656659
\nontermdef{function-specifier}\br

0 commit comments

Comments
 (0)