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.