Skip to content

Commit 1eeee72

Browse files
jensmaurertkoeppe
authored andcommitted
[stmt.ranged] Do not use \grammarterm for begin-expr and end-expr. (#1558)
1 parent e8e0fc6 commit 1eeee72

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/statements.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -659,24 +659,24 @@
659659
exposition only; and
660660

661661
\item
662-
\textit{begin-expr} and \textit{end-expr} are determined as follows:
662+
\placeholder{begin-expr} and \placeholder{end-expr} are determined as follows:
663663

664664
\begin{itemize}
665665
\item if the \grammarterm{for-range-initializer} is an expression of
666-
array type \tcode{R}, \textit{begin-expr} and \textit{end-expr} are
666+
array type \tcode{R}, \placeholder{begin-expr} and \placeholder{end-expr} are
667667
\tcode{__range} and \tcode{__range + __bound}, respectively, where \tcode{__bound} is
668-
the array bound. If \tcode{R} is an array of unknown size or an array of
668+
the array bound. If \tcode{R} is an array of unknown bound or an array of
669669
incomplete type, the program is ill-formed;
670670

671671
\item if the \grammarterm{for-range-initializer} is an expression of
672672
class type \tcode{C}, the \grammarterm{unqualified-id}{s}
673673
\tcode{begin} and \tcode{end} are looked up in the scope of \tcode{C}
674674
as if by class member access lookup~(\ref{basic.lookup.classref}), and if either
675-
(or both) finds at least one declaration, \grammarterm{begin-expr} and
676-
\grammarterm{end-expr} are \tcode{__range.begin()} and \tcode{__range.end()},
675+
(or both) finds at least one declaration, \placeholder{begin-expr} and
676+
\placeholder{end-expr} are \tcode{__range.begin()} and \tcode{__range.end()},
677677
respectively;
678678

679-
\item otherwise, \textit{begin-expr} and \textit{end-expr} are \tcode{begin(__range)}
679+
\item otherwise, \placeholder{begin-expr} and \placeholder{end-expr} are \tcode{begin(__range)}
680680
and \tcode{end(__range)}, respectively, where \tcode{begin} and \tcode{end} are looked
681681
up in the associated namespaces~(\ref{basic.lookup.argdep}).
682682
\begin{note} Ordinary unqualified lookup~(\ref{basic.lookup.unqual}) is not

0 commit comments

Comments
 (0)