aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2ctf.cc
diff options
context:
space:
mode:
authorAndre Vehreschild <vehre@gcc.gnu.org>2025-06-02 10:41:48 +0200
committerAndre Vehreschild <vehre@gcc.gnu.org>2025-06-13 07:55:58 +0200
commit1549bb90c10c5e3ef1c5f2080cdb58dbaee25291 (patch)
treeaf394b2b454df64e8d4c8fcbe1e0e1232256f8ad /gcc/dwarf2ctf.cc
parent88ec0fedaf698aeafe84710a6bada738203bca5b (diff)
downloadgcc-1549bb90c10c5e3ef1c5f2080cdb58dbaee25291.zip
gcc-1549bb90c10c5e3ef1c5f2080cdb58dbaee25291.tar.gz
gcc-1549bb90c10c5e3ef1c5f2080cdb58dbaee25291.tar.bz2
Fortran: Fix missing substring ref for allocatable saved vars [PR120483]
Compute a substring ref on an allocatable static character array using pointer arithmetic. Using an array type corrupts type layouting and crashes omp generation. PR fortran/120483 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_substring): Use pointer arithmetic on static allocatable char arrays. gcc/testsuite/ChangeLog: * gfortran.dg/save_8.f90: New test. (cherry picked from commit 5c9bdfd2748b8159856a37404ab7b34d977242ce)
Diffstat (limited to 'gcc/dwarf2ctf.cc')
0 files changed, 0 insertions, 0 deletions