Skip to content

Commit fb6d393

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3085 Apply restriction inside for-range-declaration
Fixes NB US 34-067 (C++26 CD).
1 parent c41620c commit fb6d393

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/statements.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@
147147
it is interpreted as the latter.
148148

149149
\pnum
150-
In the \grammarterm{decl-specifier-seq} of a \grammarterm{condition}
151-
or of a \grammarterm{for-range-declaration},
152-
including that of any \grammarterm{structured-binding-declaration} of
153-
the \grammarterm{condition},
150+
Let $D$ be any \grammarterm{condition} or \grammarterm{for-range-declaration}.
151+
In the \grammarterm{decl-specifier-seq} of $D$,
152+
including that of any \grammarterm{structured-binding-declaration} of $D$,
154153
each
155154
\grammarterm{decl-specifier} shall be either a \grammarterm{type-specifier}
156155
or \keyword{constexpr}.

0 commit comments

Comments
 (0)