]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: revise non-char pointer handling in gfc_conv_constant
authorYuao Ma <c8ef@outlook.com>
Mon, 27 Oct 2025 17:58:39 +0000 (01:58 +0800)
committerc8ef <c8ef@outlook.com>
Tue, 28 Oct 2025 14:55:26 +0000 (22:55 +0800)
commitb6146faae09bbc936d280abb215c30d699b0c1d1
tree5db9c5977e4cee7a547504c661209e0871f7f4b9
parente6322a6c9ac6e3ac20d01336c13e097b0d5cce05
fortran: revise non-char pointer handling in gfc_conv_constant

PR fortran/122342

gcc/fortran/ChangeLog:

* trans-const.cc (gfc_conv_constant): Create a variable for the
non-char pointer.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray_atomic_5.f90: Update testcase.
* gfortran.dg/team_form_3.f90: Likewise.
gcc/fortran/trans-const.cc
gcc/testsuite/gfortran.dg/coarray_atomic_5.f90
gcc/testsuite/gfortran.dg/team_form_3.f90