<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 - c++ filt unable to demangle enable_if attributes"
href="https://bugs.llvm.org/show_bug.cgi?id=33569">33569</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>c++ filt unable to demangle enable_if attributes
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dmaclach@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18697" name="attach_18697" title="source code to generate symbol that can't be demangled">attachment 18697</a> <a href="attachment.cgi?id=18697&action=edit" title="source code to generate symbol that can't be demangled">[details]</a></span>
source code to generate symbol that can't be demangled
__attribute__ ((__enable_if__(true, ""))) int foo() {
return 0;
}
int main()
{
return foo();
}
Compiling with
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
generates a symbol of
_Z3fooUa9enable_ifIXLb1EEEv
for foo
which neither c++filt nor abi::__cxa_demangle can demangle.
These symbols are extremely common now in the C++ headers due to heavy use of
enable_if</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>