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, 16 Feb 2012 08:23:38 +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
--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-16 08:23:38 UTC ---
(In reply to comment #10)
> But think about a header only library. My test case isn't that far fetched. A
> simple struct with no member functions (except for the implicitly generated
> ones) should need no visibility at all, in my opinion.
Sure, but then why do you want the instantiation to have higher visibility? It
doesn't make sense to me for a function that has that type in the signature to
have higher visibility than the type itself.