http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60567
--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #14) > It doesn't seem to make sense to keep function > but optimize out the thunk as we would do now (even w/o LTO) Right. When we emit a function, we need to also emit any associated thunks.