From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B9AF3858434; Tue, 17 Oct 2023 04:30:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B9AF3858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697517020; bh=fU1EXqa2vzlT6FLbGX07Ntw9iqpTeYNXmKM1tWHwaxA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MrSEHY7b59vnw62Axz3ZDDqzI4jIfbZ0VbkDd+a0V3sZwodPE0rx3VI3IQcrssweU cqJuVSkyoM43Wiw7xlPL3TiYP9SfSDI4B4sKLWuanukKupxizE5E4Hx8zgXbN/6gwL 25zIcJjAMZDcKj1XHM8WLBuuXOG1hwFcfu3PUT/g= 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:30:19 +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: bug_status resolution 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #6 from Andrew Pinski --- (In reply to n.deshmukh@samsung.com from comment #5) > The code is part of a third party library hence adding a explicit cast is > not possible. Well that third party library is NOT valid C++ code ... The whole point of = the warning (and the reason why -Wno-pedantic does not turn off the warning) is point that out and more over point out the code should be fixed. Even more things like: ``` template void f(T a) requires requires(T a) { a =3D 5.0;} { } void g() { f<_Float16> (5.0); } ``` Will not work. Clang currently incorrectly accepts the above code even.=