diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2009-01-04 13:55:25 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2009-01-04 13:55:25 +0000 |
commit | fea0568fd39fa2582802b29ae3f770cd1b1f70df (patch) | |
tree | feda5d21d14f4f3d81e61346d5f8af250aa3ffbb | |
parent | 1df48f5c5809c8bccc3487c3c76c3a2c24faef51 (diff) | |
download | gcc-fea0568fd39fa2582802b29ae3f770cd1b1f70df.zip gcc-fea0568fd39fa2582802b29ae3f770cd1b1f70df.tar.gz gcc-fea0568fd39fa2582802b29ae3f770cd1b1f70df.tar.bz2 |
re PR libstdc++/38719 (_Fwd_list_iterator::_M_next() returns reference to local memory)
2009-01-04 Paolo Carlini <paolo.carlini@oracle.com>
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/forward_list.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b90886e..cdf2770 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2009-01-04 Paolo Carlini <paolo.carlini@oracle.com> + + 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 <paolo.carlini@oracle.com> * 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 473982c..e6a6a80d 100644 --- a/libstdc++-v3/include/bits/forward_list.h +++ b/libstdc++-v3/include/bits/forward_list.h @@ -1,6 +1,6 @@ // <forward_list.h> -*- 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) |