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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs