https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68912
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Dec 16 17:09:52 2015 New Revision: 231702 URL: https://gcc.gnu.org/viewcvs?rev=231702&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-4_9-branch/libstdc++-v3/testsuite/20_util/bind/68912.cc Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/std/functional