[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-11-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |14.0 --- Comment #17 from Jonathan Wa

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-11-14 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Resolutio

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-11-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #15 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:69d69865a792a93cce2905617c53913769d0f260 commit r14-5436-g69d69865a792a93cce2905617c53913769d0f260 Author: Jonathan Wakely Date

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #14 from Andrew Pinski --- _Float16 was added in GCC 12 not as an extended floating point type but rather some target specific type which had its own rules and such. GCC 13 was the first release where _Float16 became a real C++23 ext

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-17 Thread n.deshmukh at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #13 from n.deshmukh at samsung dot com --- (In reply to Jonathan Wakely from comment #12) > (In reply to n.deshm...@samsung.com from comment #5) > > The warning is valid but I wish to suppress it like the other > > conversion warning

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #12 from Jonathan Wakely --- (In reply to n.deshm...@samsung.com from comment #5) > The warning is valid but I wish to suppress it like the other > conversion warning using -Wno flag. Why? Why not just write the code correctly? It'

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Jonathan Wakely changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-17 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #10 from Eric Gallager --- (In reply to Andrew Pinski from comment #6) > (In reply to n.deshm...@samsung.com from comment #5) > > The code is part of a third party library hence adding a explicit cast is > > not possible. > > Well t

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread n.deshmukh at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #9 from n.deshmukh at samsung dot com --- (In reply to Andrew Pinski from comment #8) > (In reply to n.deshm...@samsung.com from comment #7) > > > > Is there a reason why the second error is not categorized under > > -Wfloat-convers

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #8 from Andrew Pinski --- (In reply to n.deshm...@samsung.com from comment #7) > > 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: h

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread n.deshmukh at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #7 from n.deshmukh at samsung dot com --- How about the following code: int f(double a) { float b = a; return 0; } int g(double a) { _Float16 b = a; return 0; } It generates the following errors: : In function

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread n.deshmukh at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 n.deshmukh at samsung dot com changed: What|Removed |Added Resolution|INVALID |--- Status|

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #3 from Andrew Pinski --- >Is there a way to disable this warning without using an explicit cast? No and this is by design because this is how C++ defines extended floating point types and implict casts.

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/111842] Unable to disable conversion warning in case of _Float16

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842 --- Comment #1 from Andrew Pinski --- I think you should be using 5.0f16 instead ...