[LLVMbugs] [Bug 11642] New: -fvisibility-inlines-hidden should not hide explicit instantiations
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Dec 22 13:21:06 PST 2011
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: unassignedclangbugs at nondot.org
ReportedBy: benny.kra at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list