------- Comment #2 from jason at gcc dot gnu dot org 2006-06-20 18:27 ------- This is clearly a bug, since the specialization is not inline and so should not be affected by -fvisibility-inlines-hidden.
The broader issue here is the question of when #pragma visibility should override other specified visibilities; suppose the user gave A<T>::foo an explicit visibility. Should that or the #pragma take precedence? After some thought I've concluded that the #pragma should win, that the template's visibility should only be used for implicit instantiations, or if the specialization/explicit instantiation has no explicit visibility. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2005-07-02 01:51:33 |2006-06-20 18:27:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19134