This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81812] [7/8 Regression] Empty virtual function fails to compile


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]