[Bug fortran/107317] [10/11/12/13 Regression] ICE in emit_redzone_byte, at asan.cc:1508

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 20 18:51:01 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107317

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #2 from anlauf at gcc dot gnu.org ---
A few comments: the testcase should rather be a subroutine; it will no longer
fail once we manage to make variables in the main implicit-save... ;-)

So a better testcase:

subroutine p
  real :: a(1:1000000, 200)
  call s (a(1:2000000, :  ))
end

We do not need optimization; the important flag is "-finline-arg-packing".
The other flags (-m32 -fsanitize=address -frecursive) are needed.

Adding a "save :: a" also avoids the ICE.


More information about the Gcc-bugs mailing list