This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/68912] Wrong value category used in _Bind functor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Dec 2015 17:10:24 +0000
- Subject: [Bug libstdc++/68912] Wrong value category used in _Bind functor
- Auto-submitted: auto-generated
- References: <bug-68912-4 at http dot gcc dot gnu dot org/bugzilla/>
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