<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Discrepancy between GCC's and Clang's abi_tag support in member functions of template classes"
href="https://llvm.org/bugs/show_bug.cgi?id=28511">28511</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Discrepancy between GCC's and Clang's abi_tag support in member functions of template classes
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tamiko@gentoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16723" name="attach_16723" title="Minimal example">attachment 16723</a> <a href="attachment.cgi?id=16723&action=edit" title="Minimal example">[details]</a></span>
Minimal example
GCC (5.3.0) and Clang (current trunk) have differing opinions on the following
lines of code:
template <typename> class Foo
{
std::string name()
{
return "";
}
};
template class Foo<int>;
gcc emits a symbol without an "abi:cxx11" tag:
0000000000000000 W Foo<int>::name()
whereas clang emits a symbol with "abi:cxx11" tag:
0000000000000000 W Foo<int>::name[abi:cxx11]()
The compiler versions I used where:
gcc (Gentoo Hardened 5.3.0 p1.1, pie-0.6.5) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
clang version 3.9.0 (a45abc6b0f06d0cf90d0c595bc6ea37596cd5802)
(b02ab0928eb310dba607ed2d90172e79908c665a)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin</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>