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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Xi Ruoyao changed:
What|Removed |Added
CC||xry111 at gcc dot gnu.org
Resolutio
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
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
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
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'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Jonathan Wakely changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
n.deshmukh at samsung dot com changed:
What|Removed |Added
Resolution|INVALID |---
Status|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
--- Commen
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
--- Comment #1 from Andrew Pinski ---
I think you should be using 5.0f16 instead ...
17 matches
Mail list logo