https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fvisibility=hidden hides typeinfo so it could be possibility of having two typeinfo for the same class in if not used correctly.