------- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-19 01:06 ------- With C++0x we have: template<class _T1, class _T2> inline pair<typename __decay_and_strip<_T1>::__type, typename __decay_and_strip<_T2>::__type> make_pair(_T1&& __x, _T2&& __y)
Which is correct that lvalues cannot be bound to rvalue reference variables. So this is a libstdc++ bug if it is a bug at all. See PR 40486 about the change to C++ front-end and the changes done to the library part. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |libstdc++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43785