[Bug fortran/109500] SIGABRT when calling a function that returns an unallocated value

leandro.lupori at linaro dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 17 12:14:12 GMT 2023


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

--- Comment #10 from Leandro Lupori <leandro.lupori at linaro dot org> ---
Wouldn't it be better to turn this into a warning?

Although using the result of a function as an allocatable argument doesn't
conform with Fortran standards, it has been supported by gfortran for quite
some time. This change may break existing code.


More information about the Gcc-bugs mailing list