https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102466
--- Comment #4 from Mathieu Malaterre <mathieu.malaterre at gmail dot com> --- I can reproduce it using -Wall -fsanitize=undefined -O2 * https://github.com/malaterre/PublicRep/tree/master/gcc/libjxl