https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91086
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- No. The dependency on the template argument is correct. If another shared library defines a class H with the visibility of hidden and the loader decides to choose the wrong symbol for the shared library then things go bad.