https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68912
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Dec 16 14:16:00 2015 New Revision: 231692 URL: https://gcc.gnu.org/viewcvs?rev=231692&root=gcc&view=rev Log: Fix cv-qualifiers in std::bind invocation PR libstdc++/68912 * include/std/functional (_Bind::operator()): Use lvalue functor to deduce return type. * testsuite/20_util/bind/68912.cc: New. Added: branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/bind/68912.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/std/functional