public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113770] New: _Float64x support on g++ 13.2.0
@ 2024-02-05 14:17 kashi at waseda dot jp
  2024-02-05 14:29 ` [Bug c++/113770] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: kashi at waseda dot jp @ 2024-02-05 14:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113770
           Summary: _Float64x support on g++ 13.2.0
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kashi at waseda dot jp
  Target Milestone: ---

I have noticed that the following simple program will not complie
with g++ 13.2.0 on ubuntu 23.04 .

#include <iostream>

int main()
{
        _Float64x a;

        std::cin >> a;
}

It compiles fine with long double and __float80.
Also no problem with clang++ 16.0.6.

I also noticed that with _Float64x, the numeric_limits<_Float64x> return 0,
as shown below.

#include <iostream>
#include <limits>

int main()
{
        std::cout << std::numeric_limits<_Float64x>::epsilon() << std::endl;
        std::cout << std::numeric_limits<_Float64x>::max() << std::endl;
        std::cout << std::numeric_limits<_Float64x>::min() << std::endl;
        std::cout << std::numeric_limits<_Float64x>::infinity() << std::endl;
}

This program returns 0:

0
0
0
0

With long double and __float80, the program returns correct values:

1.0842e-19
1.18973e+4932
3.3621e-4932
inf

It seems to me that g++ 13 cannot handle _Float64 correctly.
Is there any way to deal with this?

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

end of thread, other threads:[~2024-02-05 16:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-05 14:17 [Bug c++/113770] New: _Float64x support on g++ 13.2.0 kashi at waseda dot jp
2024-02-05 14:29 ` [Bug c++/113770] " redi at gcc dot gnu.org
2024-02-05 14:32 ` redi at gcc dot gnu.org
2024-02-05 14:47 ` kashi at waseda dot jp
2024-02-05 14:52 ` jakub at gcc dot gnu.org
2024-02-05 15:08 ` kashi at waseda dot jp
2024-02-05 15:15 ` redi at gcc dot gnu.org
2024-02-05 15:16 ` jakub at gcc dot gnu.org
2024-02-05 15:34 ` kashi at waseda dot jp
2024-02-05 16:54 ` pinskia 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).