public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false
@ 2020-06-06 12:39 janezz55 at gmail dot com
2020-06-06 16:10 ` [Bug libstdc++/95561] " glisse at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: janezz55 at gmail dot com @ 2020-06-06 12:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
Bug ID: 95561
Summary: std::is_signed_v<__int128> is false
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: janezz55 at gmail dot com
Target Milestone: ---
As the comment says, std::is_signed_v<__int128> should evaluate to true.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/95561] std::is_signed_v<__int128> is false
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
@ 2020-06-06 16:10 ` glisse at gcc dot gnu.org
2020-06-06 17:23 ` janezz55 at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: glisse at gcc dot gnu.org @ 2020-06-06 16:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Are you using -std=gnu++17 or -std=c++17 ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/95561] std::is_signed_v<__int128> is false
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
2020-06-06 16:10 ` [Bug libstdc++/95561] " glisse at gcc dot gnu.org
@ 2020-06-06 17:23 ` janezz55 at gmail dot com
2020-06-06 17:26 ` janezz55 at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: janezz55 at gmail dot com @ 2020-06-06 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
--- Comment #2 from Janez Zemva <janezz55 at gmail dot com> ---
(In reply to Marc Glisse from comment #1)
> Are you using -std=gnu++17 or -std=c++17 ?
yes, of course.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/95561] std::is_signed_v<__int128> is false
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
2020-06-06 16:10 ` [Bug libstdc++/95561] " glisse at gcc dot gnu.org
2020-06-06 17:23 ` janezz55 at gmail dot com
@ 2020-06-06 17:26 ` janezz55 at gmail dot com
2020-06-06 17:30 ` redi at gcc dot gnu.org
2020-06-06 17:36 ` janezz55 at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: janezz55 at gmail dot com @ 2020-06-06 17:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
--- Comment #3 from Janez Zemva <janezz55 at gmail dot com> ---
BTW: std::is_integral_v<__int128> is also false. I'm not certain, whether this
is a bug, but reporting nonetheless.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/95561] std::is_signed_v<__int128> is false
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
` (2 preceding siblings ...)
2020-06-06 17:26 ` janezz55 at gmail dot com
@ 2020-06-06 17:30 ` redi at gcc dot gnu.org
2020-06-06 17:36 ` janezz55 at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2020-06-06 17:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Not a bug.
Marc was asking *which* option you're using, -std=gnu++17 or -std=c++17.
__int128 is not an integral type, so in strict -std=c++17 mode the standard
requires that is_integral_v<__int128> is false and therefore
is_signed_v<__int128> has to be false too.
With -std=gnu++17 both are true.
This is by design, not a bug. If you want to use non-standard extensions like
__int128 and have them treated as integral types, don't ask for strict standard
conformance with -std=c++17.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/95561] std::is_signed_v<__int128> is false
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
` (3 preceding siblings ...)
2020-06-06 17:30 ` redi at gcc dot gnu.org
@ 2020-06-06 17:36 ` janezz55 at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: janezz55 at gmail dot com @ 2020-06-06 17:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95561
--- Comment #5 from Janez Zemva <janezz55 at gmail dot com> ---
Thank you for the "fix", I am writing my own 128-bit integral type, but in the
mean time, I'm using __int128.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-06-06 17:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-06 12:39 [Bug libstdc++/95561] New: std::is_signed_v<__int128> is false janezz55 at gmail dot com
2020-06-06 16:10 ` [Bug libstdc++/95561] " glisse at gcc dot gnu.org
2020-06-06 17:23 ` janezz55 at gmail dot com
2020-06-06 17:26 ` janezz55 at gmail dot com
2020-06-06 17:30 ` redi at gcc dot gnu.org
2020-06-06 17:36 ` janezz55 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).