diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-06-11 15:24:55 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-06-17 09:50:18 +0200 |
commit | db75a6657e9de6ee7effe46cd2626d9bb946f2e6 (patch) | |
tree | cbd306b833f6fb1f5ec8c3a0f0c6eea958a62048 /gcc/tree-ssa-loop-niter.cc | |
parent | 6d0b7b69d143025f271d0041cfa29cf26e6c343b (diff) | |
download | gcc-db75a6657e9de6ee7effe46cd2626d9bb946f2e6.zip gcc-db75a6657e9de6ee7effe46cd2626d9bb946f2e6.tar.gz gcc-db75a6657e9de6ee7effe46cd2626d9bb946f2e6.tar.bz2 |
Fix ICE when compiling with -fcoarray=single, when derefing a non-array.
PR fortran/96418
PR fortran/103112
gcc/fortran/ChangeLog:
* trans.cc (gfc_deallocate_with_status): Check that object to deref
is an array, before applying array deref.
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray_alloc_comp_3.f08: Moved to...
* gfortran.dg/coarray/alloc_comp_8.f90: ...here.
Should be tested for both -fcoarray=single and lib, resp.
* gfortran.dg/coarray_alloc_comp_4.f08: Fix program name.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.cc')
0 files changed, 0 insertions, 0 deletions