[Bug c++/58678] [4.9 Regression] pykde4-4.11.2 link error (devirtualization too trigger happy)
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 5 15:58:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58678
--- Comment #25 from Jason Merrill <jason at gcc dot gnu.org> ---
OK, this testcase wasn't affected by my earlier patch because ~Part is
user-defined, so it's fair game for devirtualization.
I notice, however, that in the unreduced testcase Part is an abstract class, so
it doesn't make sense to choose its destructor for speculative
devirtualization: that can never be the right answer. I'll fix that.
More information about the Gcc-bugs
mailing list