[LLVMbugs] [Bug 13325] New: #pragma visibility processed at point of instantiation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 10 18:46:39 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13325
Bug #: 13325
Summary: #pragma visibility processed at point of instantiation
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: ASSIGNED
Severity: enhancement
Priority: P
Component: C++
AssignedTo: rafael.espindola at gmail.com
ReportedBy: rafael.espindola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
We produce a hidden reference to _M_fill_insert in
template<typename _Tp > struct vector {
static void _M_fill_insert();
};
#pragma GCC visibility push(hidden)
void foo() {
vector<unsigned>::_M_fill_insert();
}
This happens because AddPushedVisibilityAttribute is called during template
instantiatition, where the pragma is already active.
--
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