<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Regression (r313957): -fvisibility=hidden has no effect on template instantiated functions whose types contain a lambda"
href="https://bugs.llvm.org/show_bug.cgi?id=34811">34811</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression (r313957): -fvisibility=hidden has no effect on template instantiated functions whose types contain a lambda
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>peter@pcc.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ 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 {</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>