https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118854
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- One way of fixing this is to move _pInstance to be a static variable inside instance function which makes the initialization dynamic and correctly ordered.