https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #1 from anlauf at gcc dot gnu.org --- gfortran seems to see the CONTIGUOUS attribute in the declaration of the dummy argument C_2D of SetPointer, but no corresponding attribute to B_2D. Workaround: add CONTIGUOUS to the declaration of B_2D.