https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81812
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 41969 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41969&action=edit Prototype patch The issue here is that because the function is empty, GCC decides that we want to inline it into all callers, which then fails because we can't generate a gimple thunk. This patch avoids trying to inline virtual varargs functions into all callers, but I expect it isn't quite the right fix.