This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/43785] [4.5/4.6 Regression] very basic regression in std::make_pair
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2010 01:06:40 -0000
- Subject: [Bug libstdc++/43785] [4.5/4.6 Regression] very basic regression in std::make_pair
- References: <bug-43785-17658@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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