From: Paolo Carlini Date: Sun, 4 Jan 2009 13:55:25 +0000 (+0000) Subject: re PR libstdc++/38719 (_Fwd_list_iterator::_M_next() returns reference to local memory) X-Git-Tag: releases/gcc-4.4.0~1052 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fea0568fd39fa2582802b29ae3f770cd1b1f70df;p=thirdparty%2Fgcc.git re PR libstdc++/38719 (_Fwd_list_iterator::_M_next() returns reference to local memory) 2009-01-04 Paolo Carlini PR libstdc++/38719 * include/bits/forward_list.h (_Fwd_list_iterator<>::_M_next, _Fwd_list_const_iterator::_M_next): Fix return type. From-SVN: r143052 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b90886e473b2..cdf2770f9455 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2009-01-04 Paolo Carlini + + PR libstdc++/38719 + * include/bits/forward_list.h (_Fwd_list_iterator<>::_M_next, + _Fwd_list_const_iterator::_M_next): Fix return type. + 2009-01-03 Paolo Carlini * Revert last commit, reopen and suspend libstdc++/38678. diff --git a/libstdc++-v3/include/bits/forward_list.h b/libstdc++-v3/include/bits/forward_list.h index 473982c7e786..e6a6a80d5134 100644 --- a/libstdc++-v3/include/bits/forward_list.h +++ b/libstdc++-v3/include/bits/forward_list.h @@ -1,6 +1,6 @@ // -*- C++ -*- -// Copyright (C) 2008 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -188,7 +188,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) operator!=(const _Self& __x) const { return this->_M_node != __x._M_node; } - const _Self& + _Self _M_next() const { if (_M_node) @@ -259,7 +259,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) operator!=(const _Self& __x) const { return this->_M_node != __x._M_node; } - const _Self& + _Self _M_next() const { if (this->_M_node)