[llvm-bugs] [Bug 26156] New: typeinfo for __int128_t and __uint128_t not emitted
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jan 15 04:16:48 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26156
Bug ID: 26156
Summary: typeinfo for __int128_t and __uint128_t not emitted
Product: clang
Version: 3.7
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: hartmut.brandt at dlr.de
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
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
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622)).
--
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/20160115/d7b2fd59/attachment.html>
More information about the llvm-bugs
mailing list