[Bug c++/37667] Initialization of global variables and functions with constructor attribute.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 28 18:58:00 GMT 2008
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-28 18:57 -------
This works on the trunk at -O0 but fails at -O2.
I think this is undefined as the priority are the same.
You should use init_priority and set a priority for the constructor.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37667
More information about the Gcc-bugs
mailing list