Skip to content

Commit b06c3ee

Browse files
Dawn Perchikzygoloid
authored andcommitted
CWG1523 Point of declaration in range-based for
1 parent c92eb3a commit b06c3ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/basic.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,12 @@
722722
variable~(\ref{dcl.fct.def}) is immediately before the
723723
\grammarterm{function-body} of a function definition.
724724

725+
\pnum
726+
The point of declaration for the variable or the structured bindings
727+
declared in the \grammarterm{for-range-declaration}
728+
of a range-based \tcode{for} statement~(\ref{stmt.ranged})
729+
is immediately after the \grammarterm{for-range-initializer}.
730+
725731
\pnum
726732
The point of declaration for a template parameter is immediately after its complete
727733
\grammarterm{template-parameter}. \begin{example}

0 commit comments

Comments
 (0)