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.
pinskia at gcc dot gnu.org via Gcc-bugs Thu, 09 Dec 2021 05:32:42 -0800
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.