[Bug fortran/100154] [9/10/11/12 Regression] ICE in gfc_conv_procedure_call, at fortran/trans-expr.c:6131

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 27 21:29:43 GMT 2021


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

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

https://gcc.gnu.org/g:e06c76270de946c56e9b38a7a87532d7eb72298a

commit r10-9773-ge06c76270de946c56e9b38a7a87532d7eb72298a
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Apr 24 20:51:41 2021 +0200

    PR fortran/100154 - ICE in gfc_conv_procedure_call, at
fortran/trans-expr.c:6131

    Add appropriate static checks for the character and status arguments to
    the GNU Fortran intrinsic extensions fget[c], fput[c].  Extend variable
    check to allow a function reference having a data pointer result.

    gcc/fortran/ChangeLog:

            PR fortran/100154
            * check.c (variable_check): Allow function reference having a data
            pointer result.
            (arg_strlen_is_zero): New function.
            (gfc_check_fgetputc_sub): Add static check of character and status
            arguments.
            (gfc_check_fgetput_sub): Likewise.
            * intrinsic.c (add_subroutines): Fix argument name for the
            character argument to intrinsic subroutines fget[c], fput[c].

    gcc/testsuite/ChangeLog:

            PR fortran/100154
            * gfortran.dg/pr100154.f90: New test.

    (cherry picked from commit d0e7833b94953ba6b4a915150666969ad9fc66af)


More information about the Gcc-bugs mailing list