diff options
author | Harald Anlauf <anlauf@gmx.de> | 2021-04-24 20:51:41 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2021-04-24 20:51:41 +0200 |
commit | d0e7833b94953ba6b4a915150666969ad9fc66af (patch) | |
tree | 1f8b3e8bce8cbe30efc499db4d766df4e36cc1f4 /gcc/tree-complex.c | |
parent | 32c4d970ea3a9fc330d6aa8fd83f9dae0b9afc64 (diff) | |
download | gcc-d0e7833b94953ba6b4a915150666969ad9fc66af.zip gcc-d0e7833b94953ba6b4a915150666969ad9fc66af.tar.gz gcc-d0e7833b94953ba6b4a915150666969ad9fc66af.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions