https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842

--- Comment #9 from n.deshmukh at samsung dot com <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-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#implicit
> 
> It even mentions why things won't change.
> Again the code:
> ```
> float a;
> _Float16 b = a;
> ```
> is invalid C++ code as defined by that paper (which was addopted for C++23).
> While:
> ```
> double a;
> float b = a;
> ```
> is still valid even.

Yes I went through the link and I understand that double to float conversion is
valid code. My question was regarding the use of the diagnostic flag. My
understanding was that the diagnostic flag was implementation defined. That's
why I was asking.

Reply via email to