Skip to content

Commit 6ae3ba9

Browse files
committed
[basic.def.odr] Fix use of undefined term
Change "function definition scope" to "function parameter scope".
1 parent 940a063 commit 6ae3ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/basic.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
for each intervening scope\iref{basic.scope.scope}
598598
between 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),
601601
either
602602
\begin{itemize}
603603
\item the intervening scope is a block scope,
@@ -621,7 +621,7 @@
621621
void 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

0 commit comments

Comments
 (0)