public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -m32 and int128
@ 2014-01-01 13:07 Paolo Bolzoni
  2014-01-01 13:36 ` Marc Glisse
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bolzoni @ 2014-01-01 13:07 UTC (permalink / raw)
  To: gcc-help

[Please put me in CC since I am not part of this list]

Dear list,
I was playing around with g++ when I got this weird behavior:

% cat a.cpp
#include <iostream>
#include <limits>

int main() {
}


% g++ a.cpp
% g++ -m32 a.cpp
In file included from a.cpp:2:0:
/usr/include/c++/4.8.2/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/include/c++/4.8.2/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
%

Compiling with -m32 breaks programs which include <limits>.
Is that a bug? Is there a work-around? Thanks.

Yours sincerely,
Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-01 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-01 13:07 -m32 and int128 Paolo Bolzoni
2014-01-01 13:36 ` Marc Glisse
2014-01-01 15:00   ` Paolo Bolzoni

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).