This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81812] [7/8 Regression] Empty virtual function fails to compile
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Aug 2017 04:50:33 +0000
- Subject: [Bug c++/81812] [7/8 Regression] Empty virtual function fails to compile
- Auto-submitted: auto-generated
- References: <bug-81812-4@http.gcc.gnu.org/bugzilla/>
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.