https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109868
--- Comment #10 from Sam James <sjames at gcc dot gnu.org> --- fwiw, on glibc, I don't get the oob read w/ valgrind but still the ICE as you've already found.
sjames at gcc dot gnu.org via Gcc-bugs Mon, 15 May 2023 16:06:19 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109868
--- Comment #10 from Sam James <sjames at gcc dot gnu.org> --- fwiw, on glibc, I don't get the oob read w/ valgrind but still the ICE as you've already found.