https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111897
Bug ID: 111897 Summary: Initialization of _Float16 with f.p. constant gives false warning Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: agner at agner dot org Target Milestone: --- Initializing a _Float16 gives false warning. Example: _Float16 A = 1.0; This gives the "warning: converting to ‘_Float16’ from ‘double’ with greater conversion rank", with a link to https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1467r4.html#implicit However, this link says that implicit conversion is allowed in initialization with a constant. See section 5.7.3 and the example in 5.6.1 in the linked document.