Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
for each intervening scope\iref{basic.scope.scope}
between the point at which the entity is introduced and the scope
(where \tcode{*\keyword{this}} is considered to be introduced
within the innermost enclosing class or non-lambda function definition scope),
within the innermost enclosing class or non-lambda function parameter scope),
either
\begin{itemize}
\item the intervening scope is a block scope,
Expand All @@ -621,7 +621,7 @@
void f(int n) {
[] { n = 1; }; // error: \tcode{n} is not odr-usable due to intervening lambda-expression
struct A {
void f() { n = 2; } // error: \tcode{n} is not odr-usable due to intervening function definition scope
void f() { n = 2; } // error: \tcode{n} is not odr-usable due to intervening function parameter scope
};
void g(int = n); // error: \tcode{n} is not odr-usable due to intervening function parameter scope
[=](int k = n) {}; // error: \tcode{n} is not odr-usable due to being
Expand Down