Skip to content

Commit b386fd0

Browse files
burblebeetkoeppe
authored andcommitted
LWG3825 Missing compile-time argument id check in basic_format_parse_context::next_arg_id
1 parent 796bbfc commit b386fd0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/utilities.tex

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16142,7 +16142,7 @@
1614216142
\begin{itemdescr}
1614316143
\pnum
1614416144
\effects
16145-
If \tcode{indexing_ != manual}, equivalent to:
16145+
If \tcode{indexing_ != manual} is \tcode{true}, equivalent to:
1614616146
\begin{codeblock}
1614716147
if (indexing_ == unknown)
1614816148
indexing_ = automatic;
@@ -16151,8 +16151,14 @@
1615116151

1615216152
\pnum
1615316153
\throws
16154-
\tcode{format_error} if \tcode{indexing_ == manual}
16154+
\tcode{format_error} if \tcode{indexing_ == manual} is \tcode{true}
1615516155
which indicates mixing of automatic and manual argument indexing.
16156+
16157+
\pnum
16158+
\remarks
16159+
Let \tcode{\placeholder{cur-arg-id}} be the value of \tcode{next_arg_id_} prior to this call.
16160+
Call expressions where \tcode{\placeholder{cur-arg-id} >= num_args_} is \tcode{true}
16161+
are not core constant expressions\iref{expr.const}.
1615616162
\end{itemdescr}
1615716163

1615816164
\indexlibrarymember{check_arg_id}{basic_format_parse_context}%
@@ -16163,7 +16169,7 @@
1616316169
\begin{itemdescr}
1616416170
\pnum
1616516171
\effects
16166-
If \tcode{indexing_ != automatic}, equivalent to:
16172+
If \tcode{indexing_ != automatic} is \tcode{true}, equivalent to:
1616716173
\begin{codeblock}
1616816174
if (indexing_ == unknown)
1616916175
indexing_ = manual;
@@ -16172,12 +16178,12 @@
1617216178
\pnum
1617316179
\throws
1617416180
\tcode{format_error} if
16175-
\tcode{indexing_ == automatic} which indicates mixing of automatic and
16176-
manual argument indexing.
16181+
\tcode{indexing_ == automatic} is \tcode{true}
16182+
which indicates mixing of automatic and manual argument indexing.
1617716183

1617816184
\pnum
1617916185
\remarks
16180-
Call expressions where \tcode{id >= num_args_} are not
16186+
Call expressions where \tcode{id >= num_args_} is \tcode{true} are not
1618116187
core constant expressions\iref{expr.const}.
1618216188
\end{itemdescr}
1618316189

0 commit comments

Comments
 (0)