[Bug libstdc++/111327] std::bind_front (and std::not_fn) doesn't always perfectly forward according to value category of the call wrapper object
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 5 17:38:13 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111327
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:b212314667d4cf636c7728d2c91f028c516e7df8
commit r16-5917-gb212314667d4cf636c7728d2c91f028c516e7df8
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Dec 5 12:15:08 2025 -0500
libstdc++: Use deducing this in std::bind_front even in C++20 [PR111327]
PR libstdc++/111327
libstdc++-v3/ChangeLog:
* include/bits/binders.h (_Binder::operator())
[_GLIBCXX_EXPLICIT_THIS_PARAMETER]: Also use deducing this in
C++20 mode when possible.
* testsuite/20_util/function_objects/bind_front/111327.cc:
Expect error inside header even in C++20 mode.
Reviewed-by: Tomasz KamiÅski <tkaminsk@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
More information about the Gcc-bugs
mailing list