[Bug libstdc++/44487] pair of references doesn't work in c++0x mode

2010-06-09 Thread jason at gcc dot gnu dot org
--- Comment #4 from jason at gcc dot gnu dot org 2010-06-10 03:28 --- Created an attachment (id=20881) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20881&action=view) patch This patch fixes it for me. I'm not entirely sure this is a proper use of forward, but it seems appropriat

[Bug libstdc++/44487] pair of references doesn't work in c++0x mode

2010-06-09 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-06-10 01:07 --- The constructor at issue is trivially conforming to the most recent specs (n3092) (*), thus, in my opinion, either this is a compiler issue, or a defect in c++0x or a feature in c++0x itself, can't be a library

[Bug libstdc++/44487] pair of references doesn't work in c++0x mode

2010-06-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-06-10 00:48 --- What I mean is that the C++ front-end is correct to reject the code that libstdc++ provides to it. If there is a bug it is a problem with libstdc++ (or maybe even the in flux C++0x STL :) ). -- http://gcc.gnu.o

[Bug libstdc++/44487] pair of references doesn't work in c++0x mode

2010-06-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-10 00:43 --- I think this is because C++0x introduces rvalue references and those cannot bind to lvalues. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added