diff options
author | Harald Anlauf <anlauf@gmx.de> | 2021-12-09 22:57:13 +0100 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2021-12-10 18:53:09 +0100 |
commit | bb6a1ebb8585b85879735d0d6df9535885fad165 (patch) | |
tree | f9c186dabaacf7ae6f1f7693c2e1c5e06ab42971 /libgcc | |
parent | 982a2c9b7866558039df61b0596caad57c94c8c4 (diff) | |
download | gcc-bb6a1ebb8585b85879735d0d6df9535885fad165.zip gcc-bb6a1ebb8585b85879735d0d6df9535885fad165.tar.gz gcc-bb6a1ebb8585b85879735d0d6df9535885fad165.tar.bz2 |
Fortran: fix check for pointer dummy arguments with INTENT(IN)
gcc/fortran/ChangeLog:
PR fortran/103418
* check.c (variable_check): Replace previous check of procedure
dummy arguments with INTENT(IN) attribute when passed to intrinsic
procedures by gfc_check_vardef_context.
* expr.c (gfc_check_vardef_context): Correct check of INTENT(IN)
dummy arguments for the case of sub-components of a CLASS pointer.
gcc/testsuite/ChangeLog:
PR fortran/103418
* gfortran.dg/move_alloc_8.f90: Adjust error messages.
* gfortran.dg/pointer_intent_9.f90: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions