This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17470] Visibility attribute ignored for explicit template instantiation
- From: "austern at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2004 02:20:04 -0000
- Subject: [Bug c++/17470] Visibility attribute ignored for explicit template instantiation
- References: <20040913213750.17470.austern@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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