https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110432
--- Comment #8 from Sascha Scandella <sascha.scandella at dentsplysirona dot com> --- I've tested the proposed solution ... #if !__has_attribute(__init_priority__) || defined __APPLE__ ... and it works as expected. I had also done something similar before, so I wasn't that surprised. Let me know if you need more information from my side. Who will fix the bug? Thank you for your help and support! I appreciate it very much.