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: "efrias at syncad dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2004 20:46:58 -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 efrias at syncad dot com 2004-12-13 20:46 -------
I just ran into this quirk too. It looks like you can work around by using
"#pragma GCC visibility push(default)" before the explicit instantiation and
then popping afterwards. I'd greatly prefer the __attribute__ syntax because
that would permit me to use one macro for porting __declspec(dllexport)
constructs from windows code. Even displaying a warning or error for the
ignored __attribute__ would've saved me some grief.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |efrias at syncad dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17470