public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
       [not found] <bug-35569-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-07 13:00 ` redi at gcc dot gnu.org
  2012-03-19 11:01 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-07 13:00 UTC (permalink / raw)
  To: gcc-bugs

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. ***


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
       [not found] <bug-35569-4@http.gcc.gnu.org/bugzilla/>
  2011-09-07 13:00 ` [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues redi at gcc dot gnu.org
@ 2012-03-19 11:01 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu.org @ 2012-03-19 11:01 UTC (permalink / raw)
  To: gcc-bugs

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. ***


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (12 preceding siblings ...)
  2010-01-12  0:54 ` redi at gcc dot gnu dot org
@ 2010-01-12  0:55 ` redi at gcc dot gnu dot org
  13 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-01-12  0:55 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (11 preceding siblings ...)
  2009-11-11 14:05 ` redi at gcc dot gnu dot org
@ 2010-01-12  0:54 ` redi at gcc dot gnu dot org
  2010-01-12  0:55 ` redi at gcc dot gnu dot org
  13 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-01-12  0:54 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=155826
Log:
2010-01-12  Jonathan Wakely  <jwakely.gcc@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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (10 preceding siblings ...)
  2009-11-11 13:19 ` paolo dot carlini at oracle dot com
@ 2009-11-11 14:05 ` redi at gcc dot gnu dot org
  2010-01-12  0:54 ` redi at gcc dot gnu dot org
  2010-01-12  0:55 ` redi at gcc dot gnu dot org
  13 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-11-11 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (9 preceding siblings ...)
  2009-06-05 12:48 ` jwakely dot gcc at gmail dot com
@ 2009-11-11 13:19 ` paolo dot carlini at oracle dot com
  2009-11-11 14:05 ` redi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-11 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (8 preceding siblings ...)
  2009-06-02 11:52 ` redi at gcc dot gnu dot org
@ 2009-06-05 12:48 ` jwakely dot gcc at gmail dot com
  2009-11-11 13:19 ` paolo dot carlini at oracle dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: jwakely dot gcc at gmail dot com @ 2009-06-05 12:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jwakely dot gcc at gmail dot com  2009-06-05 12:48 -------
I've got std::bind and friends working with rvalues, but bug 34022 means that
ugly workarounds are needed to work with rvalues of scalar types.  When Core DR
664 is ready and bug 34022 is fixed that won't be necessary.

Similar problems exist when invoking std::function with scalar rvalue
arguments.


-- 

jwakely dot gcc at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |34022


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (7 preceding siblings ...)
  2009-01-18  3:59 ` bangerth at dealii dot org
@ 2009-06-02 11:52 ` redi at gcc dot gnu dot org
  2009-06-05 12:48 ` jwakely dot gcc at gmail dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-06-02 11:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (6 preceding siblings ...)
  2009-01-17  9:04 ` paolo dot carlini at oracle dot com
@ 2009-01-18  3:59 ` bangerth at dealii dot org
  2009-06-02 11:52 ` redi at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: bangerth at dealii dot org @ 2009-01-18  3:59 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (5 preceding siblings ...)
  2009-01-17  1:41 ` bangerth at dealii dot org
@ 2009-01-17  9:04 ` paolo dot carlini at oracle dot com
  2009-01-18  3:59 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-01-17  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (4 preceding siblings ...)
  2009-01-17  0:03 ` cfairles at gcc dot gnu dot org
@ 2009-01-17  1:41 ` bangerth at dealii dot org
  2009-01-17  9:04 ` paolo dot carlini at oracle dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: bangerth at dealii dot org @ 2009-01-17  1:41 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (3 preceding siblings ...)
  2009-01-15 11:44 ` jwakely dot gcc at gmail dot com
@ 2009-01-17  0:03 ` cfairles at gcc dot gnu dot org
  2009-01-17  1:41 ` bangerth at dealii dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: cfairles at gcc dot gnu dot org @ 2009-01-17  0:03 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
                   ` (2 preceding siblings ...)
  2009-01-14 19:20 ` jeff at schwabcenter dot com
@ 2009-01-15 11:44 ` jwakely dot gcc at gmail dot com
  2009-01-17  0:03 ` cfairles at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: jwakely dot gcc at gmail dot com @ 2009-01-15 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
  2008-10-02 17:29 ` [Bug libstdc++/35569] [c++0x] std::bind " paolo dot carlini at oracle dot com
  2008-11-24 14:56 ` paolo dot carlini at oracle dot com
@ 2009-01-14 19:20 ` jeff at schwabcenter dot com
  2009-01-15 11:44 ` jwakely dot gcc at gmail dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: jeff at schwabcenter dot com @ 2009-01-14 19:20 UTC (permalink / raw)
  To: gcc-bugs



------- 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(multiplies<int>(),4,_1)(lvalue);

    // Mistaken for a cast.
    bind(multiplies<int>(),4,_1)(5);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
  2008-10-02 17:29 ` [Bug libstdc++/35569] [c++0x] std::bind " paolo dot carlini at oracle dot com
@ 2008-11-24 14:56 ` paolo dot carlini at oracle dot com
  2009-01-14 19:20 ` jeff at schwabcenter dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-11-24 14:56 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues
  2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
@ 2008-10-02 17:29 ` paolo dot carlini at oracle dot com
  2008-11-24 14:56 ` paolo dot carlini at oracle dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-10-02 17:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-03-19 10:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-35569-4@http.gcc.gnu.org/bugzilla/>
2011-09-07 13:00 ` [Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues redi at gcc dot gnu.org
2012-03-19 11:01 ` redi at gcc dot gnu.org
2008-03-13 14:55 [Bug libstdc++/35569] New: std::[tr1::]bind " rodolfo at rodsoft dot org
2008-10-02 17:29 ` [Bug libstdc++/35569] [c++0x] std::bind " paolo dot carlini at oracle dot com
2008-11-24 14:56 ` paolo dot carlini at oracle dot com
2009-01-14 19:20 ` jeff at schwabcenter dot com
2009-01-15 11:44 ` jwakely dot gcc at gmail dot com
2009-01-17  0:03 ` cfairles at gcc dot gnu dot org
2009-01-17  1:41 ` bangerth at dealii dot org
2009-01-17  9:04 ` paolo dot carlini at oracle dot com
2009-01-18  3:59 ` bangerth at dealii dot org
2009-06-02 11:52 ` redi at gcc dot gnu dot org
2009-06-05 12:48 ` jwakely dot gcc at gmail dot com
2009-11-11 13:19 ` paolo dot carlini at oracle dot com
2009-11-11 14:05 ` redi at gcc dot gnu dot org
2010-01-12  0:54 ` redi at gcc dot gnu dot org
2010-01-12  0:55 ` redi at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).