diff options
author | Harald Anlauf <anlauf@gmx.de> | 2024-12-23 17:56:46 +0100 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2024-12-23 18:22:41 +0100 |
commit | f25250e0d5938a81f9f1b37ca873381dcfa26211 (patch) | |
tree | b54625537e209b1a54d1a56e7a52c77acd1a74da /libffi | |
parent | dae506f73bdc03628e23d5e8c566b2e642086b60 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
Commit r15-6408 overlooked the case of passing NULL without MOLD argument
to a derived type pointer dummy argument without specified intent. Since
it is prohibited to modify the dummy argument, we treat it as if intent(in)
were specified and suppress copying back of the pointer address.
PR fortran/118179
gcc/fortran/ChangeLog:
* trans-expr.cc (conv_null_actual): Suppress copying back of
pointer address for unspecified intent.
gcc/testsuite/ChangeLog:
* gfortran.dg/null_actual_7.f90: Extend testcase to also cover
scalar variants with pointer or allocatable dummy with or without
specified intent.
Diffstat (limited to 'libffi')
0 files changed, 0 insertions, 0 deletions