https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62051
--- Comment #26 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Is this even valid? That is Base and Derived in the shared library and the main program are considered two different classes because of -fvisibility=hidden and the classes are not marked as visibility default.