From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16726 invoked by alias); 25 Jul 2009 05:12:13 -0000 Received: (qmail 16654 invoked by uid 48); 25 Jul 2009 05:11:58 -0000 Date: Sat, 25 Jul 2009 05:12:00 -0000 Subject: [Bug c++/40855] New: undefined reference to `typeinfo for __int128' X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "john dot salmon at deshaw dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg02040.txt.bz2 When I try to take the typeid of an __int128_t or a __uint128_t, I get an undefined reference at link time, e.g., with gcc/4.4.1: salmonj@drdblogin6.en.desres$ cat typeid.cpp #include const std::type_info& ti(typeid(int)); // no problem const std::type_info& ti128(typeid(__int128_t)); const std::type_info& tu128(typeid(__uint128_t)); int main(){} salmonj@drdblogin6.en.desres$ desres-cleanenv -m gcc/4.4.1-13/bin g++ -std=gnu++0x typeid.cpp /tmp/ccKpEAiz.o:(.rodata+0x8): undefined reference to `typeinfo for __int128' /tmp/ccKpEAiz.o:(.rodata+0x10): undefined reference to `typeinfo for unsigned __int128' collect2: ld returned 1 exit status salmonj@drdblogin6.en.desres$ -- Summary: undefined reference to `typeinfo for __int128' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: john dot salmon at deshaw dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40855