File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 26562656void 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 };
76097609\begin {note }
76107610If the odr-use occurs in an invocation
76117611of 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
76137614due to the transformation\iref {expr.prim.lambda.capture }
76147615of the \grammarterm {id-expression} into
76157616an access of the corresponding data member.
Original file line number Diff line number Diff line change 68556855without turning on \tcode{ios_base::badbit} in the error state of \tcode{os}.
68566856\end{itemize}
68576857After 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}
68606860string out = vformat(os.getloc(), fmt, args);
68616861\end{codeblock}
You can’t perform that action at this time.
0 commit comments