https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043
--- Comment #42 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 52717 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52717&action=edit hack to rewrite all ARRA_REFs This shows a simple hack emitting *(&array + offset) from gfc_build_array_ref. That covers too many cases (as said, covering cases from array descriptor accesses should be enough). Appended is also testresults which show besides a large number of original tree dump scanning fails a few execute FAILs and a few ICEs where the gfortran frontend doesn't expect anything but an ARRAY_REF to be fed into select places (some already deal with an INDIRECT_REF as I found out). One such place is gfc_convert_array_to_string. As said, all this is probably backwards as to what the OpenACC folks desire.