[Bug fortran/126018] gfortran rejects character function invocation as stop code

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 28 06:31:55 GMT 2026


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

--- Comment #3 from Steve Kargl <kargl at gcc dot gnu.org> ---
Suppressing the error by commenting out the code should
allow gfortran to continue to the resolution phase.  I get

% gfcx -o z p9.f90
p9.f90:4:2:

    4 |   character(1) function character_stop_code()
      |  1
Error: INTERNAL-PROC procedure at (1) is already declared as EXTERNAL-PROC
procedure

which is rather unexpected.


More information about the Gcc-bugs mailing list