https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119716
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If the compiler compiles it and it misbehaves at runtime, that is valid behavior for undefined behavior. ICE (as in the other PR) is something we should fix.