This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61214] [4.9/4.10 regression]ÂWeird interaction between -fvisibility-inlines-hidden, inline virtuals and devirtualization
- 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: Tue, 03 Jun 2014 04:13:55 +0000
- Subject: [Bug c++/61214] [4.9/4.10 regression]ÂWeird interaction between -fvisibility-inlines-hidden, inline virtuals and devirtualization
- Auto-submitted: auto-generated
- References: <bug-61214-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61214
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-03
Ever confirmed|0 |1
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
The current trunk (r211157) doesn't devirtualize the call to Foo::clone; it
goes through the vtable even though we know which vtable we're dealing with. I
would guess that this is due to a change to can_refer_decl_in_current_unit_p.