[Bug c++/27000] New: Problems with latest visibility changes

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 3 11:10:00 GMT 2006


On the testcases below GCC marks even instantiated templates
with the currently pushed visibility, in case of the first testcase
that's hidden (anonymous namespace) and in the third testcase hidden as well
(namespace with visibility attribute).
But the template really wasn't declared as hidden and making it hidden causes
serious problems (e.g. depending on which order you link the .o files from
the testcases together, for _ZN1SIiEC1ERKi and _ZN1SIiED1Ev wins either
default or hidden visibility.  If it is e.g. linked into a shared library
and default visibility wins, then on x86_64 it won't even link, as first and
third .o files rely on the symbols being hidden.


-- 
           Summary: Problems with latest visibility changes
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27000



More information about the Gcc-bugs mailing list