https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.10.0 |5.0 --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Kai Tietz from comment #6) > Created attachment 36427 [details] > 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. I believe you can skip adding the attribute after you handled it this way (unless other code literally looks for the attribute rather than its effect)