[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added CC||anthony.ajw at gmail dot ||com --- Comment #14 from Jonathan Wakely redi at gcc dot gnu.org 2012-03-19 10:57:38 UTC --- *** Bug 52612 has been marked as a duplicate of this bug. ***
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added CC||martinhaefner at web dot de --- Comment #13 from Jonathan Wakely redi at gcc dot gnu.org 2011-09-07 12:56:49 UTC --- *** Bug 50320 has been marked as a duplicate of this bug. ***
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #11 from redi at gcc dot gnu dot org 2010-01-12 00:54 --- Subject: Bug 35569 Author: redi Date: Tue Jan 12 00:53:30 2010 New Revision: 155826 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=155826 Log: 2010-01-12 Jonathan Wakely jwakely@gmail.com PR libstdc++/24803 PR libstdc++/35569 PR libstdc++/42593 * include/std/functional (bind): Forward rvalues and detect correct result type of bound function object. * include/std/mutex (call_once): Specify bind result type. * testsuite/20_util/reference_wrapper/invoke.cc: Remove invalid tests. * testsuite/20_util/reference_wrapper/24803.cc: Remove invalid tests and enable FIXME tests. * testsuite/20_util/bind/35569.cc: New. * testsuite/20_util/bind/ref2.cc: New. * testsuite/20_util/bind/38889.cc: New. * testsuite/20_util/bind/ref_neg.cc: New. * testsuite/20_util/bind/42593.cc: New. Added: trunk/libstdc++-v3/testsuite/20_util/bind/35569.cc trunk/libstdc++-v3/testsuite/20_util/bind/38889.cc trunk/libstdc++-v3/testsuite/20_util/bind/42593.cc trunk/libstdc++-v3/testsuite/20_util/bind/ref2.cc trunk/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/functional trunk/libstdc++-v3/include/std/mutex trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #12 from redi at gcc dot gnu dot org 2010-01-12 00:54 --- Fixed for 4.5.0 -- redi at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #9 from paolo dot carlini at oracle dot com 2009-11-11 13:19 --- Jon, do you have any updated plans about this and related issues? I think it would be nice if we could make progress on the C++0x functional for 4.5.0... -- paolo dot carlini at oracle dot com changed: What|Removed |Added CC||paolo dot carlini at oracle ||dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #10 from redi at gcc dot gnu dot org 2009-11-11 14:05 --- Sorry for the lack of progress, I'll take another crack at it this week and report back on what I've got and what doesn't work. If I can't finish it I'll say so and unassign myself from this PR -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
-- redi at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jwakely dot gcc at gmail dot |dot org |com Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #6 from paolo dot carlini at oracle dot com 2009-01-17 09:04 --- Maybe this issue isn't sufficiently clarified in the audit. Unless I'm badly mistaken (Jon, Chris will correct me), this is not a bug for a C++03 + TR1 bind (indeed the testcases provided by Doug are rather clear about that). Only in C++0x the specs say it must work. Of course implementations can also fix it for C++03 + TR1, but this is not in general the way we are managing these issues, we prefer leaving the TR1 version alone. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #7 from bangerth at dealii dot org 2009-01-18 03:58 --- (In reply to comment #6) Maybe this issue isn't sufficiently clarified in the audit. Unless I'm badly mistaken (Jon, Chris will correct me), this is not a bug for a C++03 + TR1 bind (indeed the testcases provided by Doug are rather clear about that). Only in C++0x the specs say it must work. Of course implementations can also fix it for C++03 + TR1, but this is not in general the way we are managing these issues, we prefer leaving the TR1 version alone. And it should work if you do -std=c++0x, which I believe (from the title of the PR) is what the original intent was. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #4 from cfairles at gcc dot gnu dot org 2009-01-17 00:03 --- *** Bug 38889 has been marked as a duplicate of this bug. *** -- cfairles at gcc dot gnu dot org changed: What|Removed |Added CC||bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #5 from bangerth at dealii dot org 2009-01-17 01:41 --- (In reply to comment #2) I'm seeing the same thing with Boost.Bind (boost 1.37, GCC 4.2.1). boost.bind appears to work just fine for me, though!? W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #3 from jwakely dot gcc at gmail dot com 2009-01-15 11:44 --- I'm working on adding rvalue support to bind etc. but time is not on my side recently. I hope to make some more progress this weekend. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #2 from jeff at schwabcenter dot com 2009-01-14 19:20 --- I'm seeing the same thing with Boost.Bind (boost 1.37, GCC 4.2.1). #include boost/bind.hpp #include functional using boost::bind; using std::multiplies; int main() { // Fine. int const lvalue = 5; bind(multipliesint(),4,_1)(lvalue); // Mistaken for a cast. bind(multipliesint(),4,_1)(5); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
--- Comment #1 from paolo dot carlini at oracle dot com 2008-11-24 14:55 --- *** Bug 38238 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added CC||fuscated at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569
[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2008-10-02 17:27:55 date|| Summary|std::[tr1::]bind result |[c++0x] std::bind result |functor doesn't accept |functor doesn't accept |rvalues |rvalues http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569