[Bug fortran/78054] gfortran.dg/pr70673.f90 FAILs at -O0

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 27 18:39:33 GMT 2022


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))


More information about the Gcc-bugs mailing list