https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66487
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Compiling with -fno-lifetime-dse should make it work again. -fsanitize=undefined doesn't currently catch this issue (relying on the value of storage persisting into the lifetime of an object created there).