This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24312] C++ front-end doesn't correctly handle distinction between global initializers and ctors
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 01:45:11 -0000
- Subject: [Bug c++/24312] C++ front-end doesn't correctly handle distinction between global initializers and ctors
- References: <bug-24312-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jason at gcc dot gnu dot org 2007-10-04 01:45 -------
This is not a bug; Mark's comment in bug 21089 had to do with the fact that
[basic.start.init] says that static initialization happens before dynamic
initialization. Using foo() in Y's initializer makes Y dynamically
initialized, so it is not required to be initialized before s.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24312