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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am thinking there is not much can be done for C++17 code here really and
std::bitcast is designed to do the correct thing.

Or you just use __builtin_bit_cast directly for pre-C++20:
```
constexpr float operator""_F(unsigned long long int float_data)
{
    return __builtin_bit_cast(float, (int)float_data);
}

```

There is not much that can be done for this code that is worth implementing.
Just use __builtin_bit_cast or std::bitcast.

Reply via email to