]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/37919 ([c++0x] GCC 4.4 regression r141214 of gcc c++0x stl_pair.c...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 27 Oct 2008 16:50:23 +0000 (16:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 27 Oct 2008 16:50:23 +0000 (16:50 +0000)
commit8f0f2a1dfd96bc496c50a264d2482daa254490aa
tree480aa8d3ec7622f0b85b44490fe14c83e8190ec3
parent202e781535186eb19b4d1bb2e737f2088d5c9141
re PR libstdc++/37919 ([c++0x] GCC 4.4 regression r141214 of gcc c++0x stl_pair.c causes a boost 1.36 compilation to fail)

2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/37919
Revert:
2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>

* include/bits/stl_pair.h (__may_be_null_pointer_init): New.
(pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
Remove the old variadic constructor, and instead provide several
variadic constructors that avoid failing when attempting to
initialize a pointer from a null pointer constant.
* testsuite/20_util/pair/moveable.cc (test3): Add new tests with
initialization of pointers from the null pointer constant.

From-SVN: r141388
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/testsuite/20_util/pair/moveable.cc