From 4930897a2a45fa57fd9d766a24229a9e3f14f23e Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sat, 21 Aug 2021 13:58:22 +0200 Subject: [PATCH] [dcl.spec.general,dcl.fct.spec] Clarify duplication of decl-specifiers --- source/declarations.tex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/declarations.tex b/source/declarations.tex index f42ef66892..446aebd3aa 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -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}. @@ -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