This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51930] [4.7 regression] Explicitly instantiated template gets hidden visibility
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Mar 2012 02:38:28 +0000
- Subject: [Bug c++/51930] [4.7 regression] Explicitly instantiated template gets hidden visibility
- Auto-submitted: auto-generated
- References: <bug-51930-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51930
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-01 02:38:28 UTC ---
(In reply to comment #6)
> The problem here is that there is currently no way to add attributes to a class
> template instantiation
Oops, I was wrong. The problem was that you just had the attribute in the
wrong position; it needs to come between the "struct" and the class name, i.e.
template
struct __attribute__((visibility("default")))
template_test<test>;