https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> --- Created attachment 36427 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36427&action=edit Suggested patch I will do some further testing with that patch, and later on send patch upstream with a testcase for the common-case with selectany-attribute. It would be appreciated if you could test patch too.