public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/65883] New: numeric_limits<unsigned __int128>::max() returns incorrect value
@ 2015-04-25 10:25 john at johnmaddock dot co.uk
  2015-04-25 10:38 ` [Bug libstdc++/65883] [5/6 Regression] " glisse at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: john at johnmaddock dot co.uk @ 2015-04-25 10:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65883

            Bug ID: 65883
           Summary: numeric_limits<unsigned __int128>::max() returns
                    incorrect value
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john at johnmaddock dot co.uk

std::numeric_limits<unsigned __int128>::max() returns
0x7fffffffffffffffffffffffffffffff which is definitely not 2^128-1.  Looks like
a cut and paste error from numeric_limits<__int128>?

This is on Xubuntu 64-bit.

This is a showstopper for Boost.Multiprecision which has asserts that are
incorrectly triggered by the bug.

Regards, John Maddock.


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

end of thread, other threads:[~2015-05-04 18:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25 10:25 [Bug libstdc++/65883] New: numeric_limits<unsigned __int128>::max() returns incorrect value john at johnmaddock dot co.uk
2015-04-25 10:38 ` [Bug libstdc++/65883] [5/6 Regression] " glisse at gcc dot gnu.org
2015-04-28 19:36 ` glisse at gcc dot gnu.org
2015-04-28 19:46 ` [Bug libstdc++/65883] [5 " glisse at gcc dot gnu.org
2015-05-04 18:20 ` jakub at gcc dot gnu.org
2015-05-04 18:30 ` jakub at gcc dot gnu.org

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