http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58678

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ipa                         |c++

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Jason, any idea?

>From middle-end perspective I see nothing that prevents me from devirtualizing
here and I would incline to assume that one can not use a virtual method of a
class that is in different DSO with hidden visibility.

Adding explicit visibility into the sources (either default or hidden) should
prevent GCC from trying to access the method directly. But without having
annotation in the source one would basically have to disable all
devirtualization to all external virtual methods if one would like to support
this.

I am changing component to C++.

Reply via email to