<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 --- - typeinfo for __int128_t and __uint128_t not emitted"
href="https://llvm.org/bugs/show_bug.cgi?id=26156">26156</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>typeinfo for __int128_t and __uint128_t not emitted
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hartmut.brandt@dlr.de
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The following program fails to link:
#include <typeinfo>
const auto &ti = typeid(__int128_t);
const auto &tu = typeid(__uint128_t);
int main() {}
The linker output is:
/tmp/x-49a846.o:(.rodata+0x0): undefined reference to `typeinfo for __int128'
/tmp/x-49a846.o:(.rodata+0x8): undefined reference to `typeinfo for unsigned
__int128'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
Looks like the compiler is not emitting the typeinfo for those types. Gcc seems
to have fixed this last year (did not check, just looked at a bug report there
(<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622</a>)).</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>