http://llvm.org/bugs/show_bug.cgi?id=11642

             Bug #: 11642
           Summary: -fvisibility-inlines-hidden should not hide explicit
                    instantiations
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 7798
  --> http://llvm.org/bugs/attachment.cgi?id=7798
preprocessed testcase for a.cc

Clang with -fvisibility-inlines-hidden generates a hidden definition for
explicitly instantiated inlines.

Now think of the following scenario:
a.h defines class Foo.
a.cc has the instantiation for Foo<int>
b.cc uses Foo<int>

Now we build a shared library from a.cc, Foo::foo is not exported. When b.cc is
compiled it won't include a definition for Foo::foo and linking against the
shared library will cause a linker error.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to