From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0C613858D32; Mon, 5 Feb 2024 14:17:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0C613858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707142634; bh=P0RkyAH+ma74kPqHtRx3zx7FmAb7mRbEeZ2HIxHwDKM=; h=From:To:Subject:Date:From; b=tT6sEIJhQlJL2ncu/sQNwDDO8p7/aFhgvLFF6at+MjQLjJyu7dcFFKNNxtQLfF01O 3+bGoAiv3OJm4tWSUe39NIUqLVRuJtBRdkOmg8vPS2Tu5q7sh/HteOQjOKvphyIb+x PCTJyDFSHVU39QEPBQ+Y628swX2vVSfdc/lZMJy4= From: "kashi at waseda dot jp" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113770] New: _Float64x support on g++ 13.2.0 Date: Mon, 05 Feb 2024 14:17:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kashi at waseda dot jp X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113770 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 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 #include 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::end= l; } 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?=