stl_list.h (list::_M_size): Use NSDMI.

* include/bits/stl_list.h (list::_M_size): Use NSDMI.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
	Adjust line numbers.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Likewise.

From-SVN: r185580
This commit is contained in:
Jonathan Wakely 2012-03-20 17:01:19 +00:00 committed by Jonathan Wakely
parent ee289e4594
commit b4db974a6b
6 changed files with 18 additions and 12 deletions

View File

@ -1,3 +1,15 @@
2012-03-19 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/stl_list.h (list::_M_size): Use NSDMI.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust line numbers.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
2012-03-19 Paweł Sikora <pawel.sikora@agmk.net>
PR libstdc++/52540

View File

@ -314,26 +314,20 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
__detail::_List_node_base _M_node;
#ifdef __GXX_EXPERIMENTAL_CXX0X__
size_t _M_size;
size_t _M_size = 0;
#endif
_List_impl()
: _Node_alloc_type(), _M_node()
#ifdef __GXX_EXPERIMENTAL_CXX0X__
, _M_size(0)
#endif
{ }
_List_impl(const _Node_alloc_type& __a)
: _Node_alloc_type(__a), _M_node()
#ifdef __GXX_EXPERIMENTAL_CXX0X__
, _M_size(0)
#endif
{ }
#ifdef __GXX_EXPERIMENTAL_CXX0X__
_List_impl(_Node_alloc_type&& __a)
: _Node_alloc_type(std::move(__a)), _M_node(), _M_size(0)
: _Node_alloc_type(std::move(__a)), _M_node()
{ }
#endif
};

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1574 }
// { dg-error "no matching" "" { target *-*-* } 1568 }
#include <list>

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1530 }
// { dg-error "no matching" "" { target *-*-* } 1524 }
#include <list>

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1530 }
// { dg-error "no matching" "" { target *-*-* } 1524 }
#include <list>
#include <utility>

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1530 }
// { dg-error "no matching" "" { target *-*-* } 1524 }
#include <list>