https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58678
--- Comment #62 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 33417 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33417&action=edit Patch #5 Like so. This patch fixes the bug in both 4.9 and trunk, but only when the linker plugin isn't used. If the linker plugin is used, the resolution file tells LTO to emit ~B even though it isn't used.