https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78054
--- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #8) > Fixed on trunk by > > https://gcc.gnu.org/pipermail/gcc-cvs/2022-April/362724.html . Thomas, you'd better re-read Steve's analysis. Your patch left the first a = a ! This used to ICE. which is invalid at runtime. Try yourself running under valgrind. Either remove this line too, or protect it with an if (allocated (a))