]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Add view convert to pointer assign when only pointer/alloc attr differs...
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 4 Mar 2025 16:06:31 +0000 (17:06 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 5 Mar 2025 08:35:49 +0000 (09:35 +0100)
commit705ae582d519f1230de3ec0d75a75e72341a674e
tree6aec78fc7cb53b12408fa1ac8c08df00f2afc10e
parentb3d078220d202094a2b4eaef9b4a5ad1b84d30e6
Fortran: Add view convert to pointer assign when only pointer/alloc attr differs [PR104684]

PR fortran/104684

gcc/fortran/ChangeLog:

* trans-array.cc (gfc_conv_expr_descriptor): Look at the
lang-specific akind and do a view convert when only the akind
attribute differs between pointer and allocatable array.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/ptr_comp_6.f08: New test.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/coarray/ptr_comp_6.f08 [new file with mode: 0644]