This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/13406] initialisation of instantiated static data member not correct


------- Additional Comments From bangerth at dealii dot org  2003-12-16 08:02 -------
The program crashes because you attempt to use std::cout in the 
initialization code of your global variable x_global which seems to run before 
the initialization code of the global variable std::cout is run. 
 
I would assume that the standard doesn't say much about which 
variable is to be initialized first, no? 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13406


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