public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40855] New: undefined reference to `typeinfo for __int128'
@ 2009-07-25 5:12 john dot salmon at deshaw dot com
2009-08-25 14:13 ` [Bug c++/40855] " bangerth at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: john dot salmon at deshaw dot com @ 2009-07-25 5:12 UTC (permalink / raw)
To: gcc-bugs
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 <typeinfo>
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40855] undefined reference to `typeinfo for __int128'
2009-07-25 5:12 [Bug c++/40855] New: undefined reference to `typeinfo for __int128' john dot salmon at deshaw dot com
@ 2009-08-25 14:13 ` bangerth at gmail dot com
2009-08-25 14:49 ` joseph at codesourcery dot com
2009-08-25 15:26 ` bangerth at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 14:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bangerth at gmail dot com 2009-08-25 14:13 -------
With current mainline, I just get these errors:
g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ x.cc -std=c++0x
x.cc:4:36: error: '__int128_t' was not declared in this scope
x.cc:5:36: error: '__uint128_t' was not declared in this scope
What do I need to do to make these types available?
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40855
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40855] undefined reference to `typeinfo for __int128'
2009-07-25 5:12 [Bug c++/40855] New: undefined reference to `typeinfo for __int128' john dot salmon at deshaw dot com
2009-08-25 14:13 ` [Bug c++/40855] " bangerth at gmail dot com
@ 2009-08-25 14:49 ` joseph at codesourcery dot com
2009-08-25 15:26 ` bangerth at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2009-08-25 14:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from joseph at codesourcery dot com 2009-08-25 14:48 -------
Subject: Re: undefined reference to `typeinfo for __int128'
On Tue, 25 Aug 2009, bangerth at gmail dot com wrote:
> With current mainline, I just get these errors:
>
> g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ x.cc -std=c++0x
> x.cc:4:36: error: '__int128_t' was not declared in this scope
> x.cc:5:36: error: '__uint128_t' was not declared in this scope
>
> What do I need to do to make these types available?
They are only available for 64-bit targets (more precisely, 64-bit targets
other than PA; testcases use #if (defined(__LP64__) && !defined(__hppa__))
|| defined(_WIN64)).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40855
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40855] undefined reference to `typeinfo for __int128'
2009-07-25 5:12 [Bug c++/40855] New: undefined reference to `typeinfo for __int128' john dot salmon at deshaw dot com
2009-08-25 14:13 ` [Bug c++/40855] " bangerth at gmail dot com
2009-08-25 14:49 ` joseph at codesourcery dot com
@ 2009-08-25 15:26 ` bangerth at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bangerth at gmail dot com 2009-08-25 15:26 -------
Confirmed with gcc4.2.1.
W.
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|0000-00-00 00:00:00 |2009-08-25 15:26:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40855
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-25 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-25 5:12 [Bug c++/40855] New: undefined reference to `typeinfo for __int128' john dot salmon at deshaw dot com
2009-08-25 14:13 ` [Bug c++/40855] " bangerth at gmail dot com
2009-08-25 14:49 ` joseph at codesourcery dot com
2009-08-25 15:26 ` bangerth at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).