[Bug c++/50243] vtable for pure abstract class (interface) shouldn't be emitted
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 25 22:11:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50243
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-03-25
CC| |jason at gcc dot gnu.org
Depends on| |34949
Ever Confirmed|0 |1
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-25 22:11:45 UTC ---
(In reply to comment #0)
> Note: this is probably easier to do if ‘Bug 34949 - Dead code in empty
> destructors.’ is done.
Yes, this is really a consequence, almost a duplicate, of 34949. If we
recognize that the store is dead because nothing can refer to the object's
vptr, then we can optimize away the reference to the vtable and so the vtable
won't be emitted.
More information about the Gcc-bugs
mailing list