]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/38719 (_Fwd_list_iterator::_M_next() returns reference to local memory)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 4 Jan 2009 13:55:25 +0000 (13:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 4 Jan 2009 13:55:25 +0000 (13:55 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/forward_list.h

index b90886e473b254620c1c29cf64a96ac23b962d0e..cdf2770f945502eb58b76781e6a8c8b64fb8f4b9 100644 (file)
@@ -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.
index 473982c7e7868df0455a89ce1edbef3dc3b15f1a..e6a6a80d51342934a73b055fb040a14db4f9ab9b 100644 (file)
@@ -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)