https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94675
--- Comment #21 from Xavier ---
The problem still happens with gcc 9.4.0 but it appears to be fixed with gcc
10.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100410
--- Comment #2 from Xavier ---
It looks like it's already fixed in 10.3 and 11.1 :
https://godbolt.org/z/W98edbPEx
Do you confirm the code is correct, and it was a bug of 10.1 and 10.2 only ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100410
Bug ID: 100410
Summary: [10 regression] optimization bug with -O3
-fno-strict-aliasing
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal