https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- I should say -- I'm pretty sure the original code is undefined, but we obviously shouldn't ICE. See https://bugs.gentoo.org/932721 and https://github.com/scipy/scipy/issues/21065 for that side of things.