[Bug c++/17470] Visibility attribute ignored for explicit template instantiation
efrias at syncad dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 20:47:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list