https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965
--- Comment #8 from Nathan Teodosio <nathan.teodosio at canonical dot com> --- Ah sorry, I got fixated in the different behavior when swapping the order and didn't challenge the function. Thank you Andrew for elaborating on that and on -fsanitize=address, that is really appreciated!