[Bug libstdc++/70692] No warning when std::function<const int&(...)> binds a reference to a temporary
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 28 23:38:56 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |13.0
Resolution|--- |FIXED
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for GCC 13 by implementing the changes from https://wg21.link/P2255R2
The original example is now ill-formed.
More information about the Gcc-bugs
mailing list