[llvm-bugs] [Bug 34811] New: Regression (r313957): -fvisibility=hidden has no effect on template instantiated functions whose types contain a lambda
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 2 17:02:27 PDT 2017
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: unassignedclangbugs at nondot.org
Reporter: peter at pcc.me.uk
CC: llvm-bugs at lists.llvm.org
$ 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171003/6c22a284/attachment.html>
More information about the llvm-bugs
mailing list