https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104684
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>: https://gcc.gnu.org/g:705ae582d519f1230de3ec0d75a75e72341a674e commit r15-7826-g705ae582d519f1230de3ec0d75a75e72341a674e Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Tue Mar 4 17:06:31 2025 +0100 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.