Skip to content

Commit ac5b250

Browse files
authored
[expr.prim.lambda.capture, expr.const, ostream.formatted.print] Reword "automatic variable" (#7358)
1 parent 84af20d commit ac5b250

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/expressions.tex

+3-2
Original file line numberDiff line numberDiff line change
@@ -2656,7 +2656,7 @@
26562656
void g() {
26572657
const int N = 10;
26582658
[=] {
2659-
int arr[N]; // OK, not an odr-use, refers to automatic variable
2659+
int arr[N]; // OK, not an odr-use, refers to variable with automatic storage duration
26602660
f(&N); // OK, causes \tcode{N} to be captured; \tcode{\&N} points to
26612661
// the corresponding member of the closure type
26622662
};
@@ -7609,7 +7609,8 @@
76097609
\begin{note}
76107610
If the odr-use occurs in an invocation
76117611
of a function call operator of a closure type,
7612-
it no longer refers to \keyword{this} or to an enclosing automatic variable
7612+
it no longer refers to \keyword{this} or to an enclosing
7613+
variable with automatic storage duration
76137614
due to the transformation\iref{expr.prim.lambda.capture}
76147615
of the \grammarterm{id-expression} into
76157616
an access of the corresponding data member.

source/iostreams.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -6855,7 +6855,7 @@
68556855
without turning on \tcode{ios_base::badbit} in the error state of \tcode{os}.
68566856
\end{itemize}
68576857
After constructing a \tcode{sentry} object,
6858-
the function initializes an automatic variable via
6858+
the function initializes a variable with automatic storage duration via
68596859
\begin{codeblock}
68606860
string out = vformat(os.getloc(), fmt, args);
68616861
\end{codeblock}

0 commit comments

Comments
 (0)