[Bug c++/17470] Visibility attribute ignored for explicit template instantiation
austern at apple dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 14 02:20:00 GMT 2004
------- Additional Comments From austern at apple dot com 2004-09-14 02:20 -------
Tastes differ, I suppose! My own feeling is that it's unnatural, when declaring an unbounded set of
functions, to have to say that either all of them or none of them get exported. I find it more likely that
a dynamic library author would decide that a selected few specializations are the library's interface.
However, I don't insist on that point. What I do insist on: it's wrong for the compiler to silently ignore
the visibility attribute on explicit instantiations. Either it should be honored, or else it should be
documented and diagnosed as an error. Silently ignoring it is a nasty trap for users.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17470
More information about the Gcc-bugs
mailing list