This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]