https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100410
--- Comment #2 from Xavier <chantry.xavier at gmail dot com> --- 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 ?