From 6ae3ba9293fc3f148d257591984e763ecd58a65e Mon Sep 17 00:00:00 2001 From: lprv <100177227+lprv@users.noreply.github.com> Date: Tue, 9 Dec 2025 23:23:57 +0000 Subject: [PATCH] [basic.def.odr] Fix use of undefined term Change "function definition scope" to "function parameter scope". --- source/basic.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/basic.tex b/source/basic.tex index a78628ca87..046a5ef83c 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -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, @@ -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