https://bugs.kde.org/show_bug.cgi?id=486093

Paul Floyd <pjfl...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pjfl...@wanadoo.fr

--- Comment #2 from Paul Floyd <pjfl...@wanadoo.fr> ---
There is of course a load of intentional UB in the test cases. But this looks
unintentional. The risk is that compilers start to exploit the UB for
optimization and the code then breaks.

Rather than using illegal type casts the code should use memcpy (or even better
std::bit_cast but that requires C++20).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to