From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99B3F3858423; Tue, 17 Oct 2023 04:45:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99B3F3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697517957; bh=d5p708xwth9U9TNVbfTT30tajsVXHjSJrjclGedxeKQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CuIYLmulNoV72jRLxRAm3tujeRPMSO16f0HZCBJdqxAZS+Qt/QUpYW+56K2HVUVHo 8e9J0en85n/8AKIOVSKnKT+9PXxs9c6/lEaoX+uCHgTS1pCubrVbEZ3r7OKplkkbSq t1Sjul131QGisxFYFnNbMmrfF3/3lh4sr+201uXw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111842] Unable to disable conversion warning in case of _Float16 Date: Tue, 17 Oct 2023 04:45:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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: Message-ID: In-Reply-To: References: 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=3D111842 --- Comment #8 from Andrew Pinski --- (In reply to n.deshmukh@samsung.com from comment #7) >=20 > Is there a reason why the second error is not categorized under > -Wfloat-conversion diagnostic? Did you read what I linked? I will link it again: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1467r4.html#impli= cit It even mentions why things won't change. Again the code: ``` float a; _Float16 b =3D a; ``` is invalid C++ code as defined by that paper (which was addopted for C++23). While: ``` double a; float b =3D a; ``` is still valid even.=