This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] Fix ios_base constructor init order
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 06 Mar 2003 20:47:20 -0500
- Subject: [patch] Fix ios_base constructor init order
Sorry, I missed the warning during compilation.
2003-03-06 Jerry Quinn <jlquinn at tiamat>
* src/ios.cc (ios_base::ios_base): Correct order of _M_word and
_M_word_size initialization.
*** ios.cc.~1.33.2.3.~ Thu Mar 6 00:52:39 2003
--- ios.cc Thu Mar 6 20:44:11 2003
***************
*** 301,308 ****
return __old;
}
! ios_base::ios_base() : _M_callbacks(0), _M_word(_M_local_word),
! _M_word_size(_S_local_word_size)
{
// Do nothing: basic_ios::init() does it.
// NB: _M_callbacks and _M_word must be zero for non-initialized
--- 301,308 ----
return __old;
}
! ios_base::ios_base() : _M_callbacks(0), _M_word_size(_S_local_word_size),
! _M_word(_M_local_word)
{
// Do nothing: basic_ios::init() does it.
// NB: _M_callbacks and _M_word must be zero for non-initialized