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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #51891|0                           |1
        is obsolete|                            |

--- Comment #27 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 51974
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51974&action=edit
latest patch

This is an almost complete fix.
Almost because one regression remains on ISO_Fortran_binding_1.f90
Indeed this patch doesn’t handle c-fortran interface (aka CFI) descriptors.
Those don’t have any offset field, so it should be fixed differently for them.

In fact, I think the patch, as it is, is not worth it.  It complicates bounds
calculations, and I doubt the benefit out-weights the added complexity.
I’m going to see how to just remove the lower bound information from the
descriptor.

Reply via email to