]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix double function call with -fcheck=pointer [PR]
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Wed, 16 Jun 2021 00:53:06 +0000 (00:53 +0000)
committerJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Wed, 16 Jun 2021 00:53:06 +0000 (00:53 +0000)
commitc29e2628c17be6fc07ecea777bc24ec81bb97be3
tree3c9de87681b65eddf7198b18d7bf154c9e76988f
parent9d3d9ffd718d3b2b86e16a3ae0ba7f7b37f1ead6
Fortran: Fix double function call with -fcheck=pointer [PR]

gcc/fortran/ChangeLog:

PR fortran/82376
* trans-expr.c (gfc_conv_procedure_call): Evaluate function result
and then pass a pointer.

gcc/testsuite/ChangeLog:

PR fortran/82376
* gfortran.dg/PR82376.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/PR82376.f90 [new file with mode: 0644]