[Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays

mikael at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 10 20:17:38 GMT 2023


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

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

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

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

(In reply to Mikael Morin from comment #17)
> Looking further at the implementation of gfc_trans_allocate_array_storage,
> the size vs elem_size dance can be removed from my patch, as size is almost
> unused in the onstack case.

Updated patch attached.


More information about the Gcc-bugs mailing list