File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 597597for each intervening scope\iref {basic.scope.scope }
598598between the point at which the entity is introduced and the scope
599599(where \tcode {*\keyword {this}} is considered to be introduced
600- within the innermost enclosing class or non-lambda function definition scope),
600+ within the innermost enclosing class or non-lambda function parameter scope),
601601either
602602\begin {itemize }
603603\item the intervening scope is a block scope,
621621void f(int n) {
622622 [] { n = 1; }; // error: \tcode {n} is not odr-usable due to intervening lambda-expression
623623 struct A {
624- void f() { n = 2; } // error: \tcode {n} is not odr-usable due to intervening function definition scope
624+ void f() { n = 2; } // error: \tcode {n} is not odr-usable due to intervening function parameter scope
625625 };
626626 void g(int = n); // error: \tcode {n} is not odr-usable due to intervening function parameter scope
627627 [=](int k = n) {}; // error: \tcode {n} is not odr-usable due to being
You can’t perform that action at this time.
0 commit comments