------- 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