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