[Bug fortran/125902] -fc-prototypes incorrect for allocatable arrays and allocatable and assumed length character strings

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 24 18:30:03 GMT 2026


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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:38de4e0a8201fdfbda604e447f4b47f2ea9c069c

commit r16-9166-g38de4e0a8201fdfbda604e447f4b47f2ea9c069c
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon Jun 22 22:07:43 2026 +0200

    Fortran: -fc-prototypes, deferred shape and deferred length dummies
[PR125902]

            PR fortran/125902

    gcc/fortran/ChangeLog:

            * dump-parse-tree.cc (get_c_type_name): Use CFI_cdesc_t also for
            deferred shape and deferred length dummies, as well as for
            assumed-length scalar character dummies.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/c-prototypes_1.F90: New test.

    (cherry picked from commit e782cebd83be590090216ce3642318f9121991ce)


More information about the Gcc-bugs mailing list