This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51930] [4.7 regression] Explicitly instantiated template gets hidden visibility


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]