This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2431. Full-expressions and temporaries bound to referencesSection: 6.10 [basic.exec] Status: C++20 Submitter: Andrey Erokhin Date: 2019-02-07[Adopted as a DR at the November, 2019 meeting.]
According to 6.10 [basic.exec] paragraph 5,
A full-expression is
...
an invocation of a destructor generated at the end of the lifetime of an object other than a temporary object (6.8.7 [class.temporary]), or
...
This definition excludes the destruction of temporaries that are bound to references from being treated as full-expressions. It is not clear whether this omission has observable effects or not. See editorial issue 2664.
Proposed resolution (October, 2019):
Change 6.10 [basic.exec] bullet 5.5 as follows:
A full-expression is
...
an invocation of a destructor generated at the end of the lifetime of an object other than a temporary object (6.8.7 [class.temporary]) whose lifetime has not been extended, or
...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4