https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64266
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 38098 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38098&action=edit patch A simple fix is to tell varasm that it's OK to share artificial variables. I'm not sure what other effects that might have.