]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix erroneous "pointer argument is not associated" runtime error
authorHarald Anlauf <anlauf@gmx.de>
Thu, 27 May 2021 11:58:26 +0000 (13:58 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 27 May 2021 11:58:26 +0000 (13:58 +0200)
commit71d7dc6cd09b603bcc58d5d1747a86eb498bb147
tree13bd2be3d3a67a82d3833dcdee0ced06ca7a50d6
parent9d3a953ec4d2695e9a6bfa5f22655e2aea47a973
Fortran: Fix erroneous "pointer argument is not associated" runtime error

For CLASS arrays we need to use the CLASS data attributes to determine
which runtime check to generate.

gcc/fortran/ChangeLog:

PR fortran/100602
* trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data
attributes for CLASS arrays for generation of runtime error.

gcc/testsuite/ChangeLog:

PR fortran/100602
* gfortran.dg/pointer_check_14.f90: New test.
gcc/fortran/trans-intrinsic.c
gcc/testsuite/gfortran.dg/pointer_check_14.f90 [new file with mode: 0644]