https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104477
Bug ID: 104477
Summary: [C++23] Implement P2255R2, type trait to detect
reference binding to temporary
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jason at gcc dot gnu.org
Target Milestone: ---
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2255r2.html
The library type traits std::reference_{constructs,converts}_from_temporary
will need a compiler intrinsic to implement.
Apparently clang already has a __reference_binds_to_temporary with similar but
not identical semantics; I think let's see if they plan to adjust that builtin
or add a new one before we settle on a name.