https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98108
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:cf4ed3b41594b6935a337fe0aaf8149eadf88751 commit r11-6072-gcf4ed3b41594b6935a337fe0aaf8149eadf88751 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Dec 15 11:40:06 2020 +0000 libstdc++: Use init_priority attribute for Init object [PR 98108] This causes the global objects that run the <iostream> initialization code to be constructed earlier, which avoids some bugs in user code due to incorrectly relying on static initialization order. libstdc++-v3/ChangeLog: PR libstdc++/98108 * include/std/iostream (__ioinit): Add init_priority attribute.