https://bugs.llvm.org/show_bug.cgi?id=34811
Bug ID: 34811
Summary: Regression (r313957): -fvisibility=hidden has no
effect on template instantiated functions whose types
contain a lambda
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
$ cat vih.cpp
template <typename T>
void tf() {}
inline void *f() {
auto l = [](){};
return (void *)&tf<decltype(l)>;
}
void *p = (void *)f;
r313956:
$ clang -std=c++11 -fvisibility=hidden vih.cpp -S -o - -emit-llvm | grep
define.*_Z2tfIZ1fvEUlvE_Evv
define linkonce_odr hidden void @_Z2tfIZ1fvEUlvE_Evv() #0 comdat {
r313957:
$ clang -std=c++11 -fvisibility=hidden vih.cpp -S -o - -emit-llvm | grep
define.*_Z2tfIZ1fvEUlvE_Evv
define linkonce_odr void @_Z2tfIZ1fvEUlvE_Evv() #0 comdat {
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs