This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/38719
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 04 Jan 2009 14:56:44 +0100
- Subject: [v3] libstdc++/38719
Hi,
tested x86_64-linux, committed to mainline.
Paolo.
///////////////
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.
Index: include/bits/forward_list.h
===================================================================
*** include/bits/forward_list.h (revision 143046)
--- include/bits/forward_list.h (working copy)
***************
*** 1,6 ****
// <forward_list.h> -*- C++ -*-
! // Copyright (C) 2008 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
--- 1,6 ----
// <forward_list.h> -*- C++ -*-
! // 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
*************** _GLIBCXX_BEGIN_NAMESPACE(std)
*** 188,194 ****
operator!=(const _Self& __x) const
{ return this->_M_node != __x._M_node; }
! const _Self&
_M_next() const
{
if (_M_node)
--- 188,194 ----
operator!=(const _Self& __x) const
{ return this->_M_node != __x._M_node; }
! _Self
_M_next() const
{
if (_M_node)
*************** _GLIBCXX_BEGIN_NAMESPACE(std)
*** 259,265 ****
operator!=(const _Self& __x) const
{ return this->_M_node != __x._M_node; }
! const _Self&
_M_next() const
{
if (this->_M_node)
--- 259,265 ----
operator!=(const _Self& __x) const
{ return this->_M_node != __x._M_node; }
! _Self
_M_next() const
{
if (this->_M_node)