https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83222
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 42752 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42752&action=edit gcc8-pr83222.patch Perhaps we can do something like this and in initializers try to behave more consistently even when outside of functions. Or in the other direction, handle static var initializers even in functions like those outside of functions.