diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-07-11 15:44:56 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-08-19 08:46:43 +0200 |
commit | 661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5 (patch) | |
tree | 215d5150ab5d0290ca312f498863b98200e64082 /gcc/digraph.h | |
parent | 8d6c6fbc5271dde433998c09407b30e2cf195420 (diff) | |
download | gcc-661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5.zip gcc-661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5.tar.gz gcc-661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5.tar.bz2 |
Fix ICE in recompute_tree_invariant_for_addr_expr, at tree.c:4535 [PR84244]
Declaring an unused function with a derived type having a pointer
component and using that derived type as a coarray, lead the compiler to
ICE because the caf_token for the pointer was not linked into the
component correctly.
PR fortran/84244
gcc/fortran/ChangeLog:
* trans-types.cc (gfc_get_derived_type): When a caf_sub_token is
generated for a component, link it to the component it is
generated for (the previous one).
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray/ptr_comp_5.f08: New test.
Diffstat (limited to 'gcc/digraph.h')
0 files changed, 0 insertions, 0 deletions