This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13406] initialisation of instantiated static data member not correct
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2003 08:02:40 -0000
- Subject: [Bug c++/13406] initialisation of instantiated static data member not correct
- References: <20031215235001.13406.o.kullmann@swansea.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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