https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> --- Right, the issue is that SRA depends on get_ref_base_and_extent to figure out what is being accessed (and so whether it is safe) and that function believes the load is safely from within the array.