From 281e2d571a8fae584b824ae8d92053e704b3e6c1 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 ba7fbce79d..aa4e0bdda2 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -285,9 +285,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}. @@ -518,6 +518,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