From: Marc Glisse <marc.glisse@inria.fr>
To: Paolo Bolzoni <paolo.bolzoni.brown@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: -m32 and int128
Date: Wed, 01 Jan 2014 13:36:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.10.1401011431280.3653@laptop-mg.saclay.inria.fr> (raw)
In-Reply-To: <CAO4LoOxjveu80FfRGg7JmN0XFk9DDX3Wm45E5c94H=2bV6TeKA@mail.gmail.com>
On Wed, 1 Jan 2014, Paolo Bolzoni wrote:
> [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.
Compile with the -v flag and compare the include search paths for -m64 and
for -m32. g++ is using the wrong bits/c++config.h with -m32, probably
because of some variable in your environment.
--
Marc Glisse
next prev parent reply other threads:[~2014-01-01 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-01 13:07 Paolo Bolzoni
2014-01-01 13:36 ` Marc Glisse [this message]
2014-01-01 15:00 ` Paolo Bolzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.10.1401011431280.3653@laptop-mg.saclay.inria.fr \
--to=marc.glisse@inria.fr \
--cc=gcc-help@gcc.gnu.org \
--cc=paolo.bolzoni.brown@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).