Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,20 @@

\begin{bnf}
\nontermdef{lambda-specifiers}\br
\opt{decl-specifier-seq} \opt{noexcept-specifier} \opt{attribute-specifier-seq} \opt{trailing-return-type}
\opt{lambda-specifier-seq} \opt{noexcept-specifier} \opt{attribute-specifier-seq} \opt{trailing-return-type}
\end{bnf}

\begin{bnf}
\nontermdef{lambda-specifier}\br
\terminal{consteval}\br
\terminal{constexpr}\br
\terminal{mutable}
\end{bnf}

\begin{bnf}
\nontermdef{lambda-specifier-seq}\br
lambda-specifier\br
lambda-specifier lambda-specifier-seq
\end{bnf}

\pnum
Expand All @@ -1713,12 +1726,12 @@
\end{note}

\pnum
In the \grammarterm{decl-specifier-seq} of the \grammarterm{lambda-declarator},
each \grammarterm{decl-specifier}
shall be one of \keyword{mutable}, \keyword{constexpr}, or \keyword{consteval}.
A \grammarterm{lambda-specifier-seq} shall contain
at most one of each \grammarterm{lambda-specifier} and
shall not contain both \keyword{constexpr} and \keyword{consteval}.
If the \grammarterm{lambda-declarator} contains
an explicit object parameter\iref{dcl.fct},
then no \grammarterm{decl-specifier} in the \grammarterm{decl-specifier-seq}
then no \grammarterm{lambda-specifier} in the \grammarterm{lambda-specifier-seq}
shall be \keyword{mutable}.
\begin{note}
The trailing \grammarterm{requires-clause} is described in \ref{dcl.decl}.
Expand Down