Skip to content

Commit 54298a2

Browse files
[except.ctor] Replace the uses of "local variable"
... with "variable with automatic storage duration"
1 parent 75cdc07 commit 54298a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/exceptions.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
constructed, but not yet destroyed,
397397
since the try block was entered.
398398
If an exception is thrown during the destruction of temporaries or
399-
local variables for a \keyword{return} statement\iref{stmt.return},
399+
variables for a \keyword{return} statement\iref{stmt.return},
400400
the destructor for the returned object (if any) is also invoked.
401401
The objects are destroyed in the reverse order of the completion
402402
of their construction.
@@ -418,11 +418,11 @@
418418
}
419419
\end{codeblock}
420420
At \#1, the returned object of type \tcode{A} is constructed.
421-
Then, the local variable \tcode{b} is destroyed\iref{stmt.jump}.
422-
Next, the local variable \tcode{y} is destroyed,
421+
Then, the variable \tcode{b} is destroyed\iref{stmt.jump}.
422+
Next, the variable \tcode{y} is destroyed,
423423
causing stack unwinding,
424424
resulting in the destruction of the returned object,
425-
followed by the destruction of the local variable \tcode{a}.
425+
followed by the destruction of the variable \tcode{a}.
426426
Finally, the returned object is constructed again at \#2.
427427
\end{example}
428428

0 commit comments

Comments
 (0)