diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-07-10 14:37:37 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-07-18 09:27:46 +0200 |
commit | 0231b076dc98eb02e3289b21ace1757782e3917b (patch) | |
tree | 2848733269f7e53dbfd6100e6de822dcdef758d0 /gcc/cp/tree.cc | |
parent | 958ee138748fae4371e453eb9b357f576abbe83e (diff) | |
download | gcc-0231b076dc98eb02e3289b21ace1757782e3917b.zip gcc-0231b076dc98eb02e3289b21ace1757782e3917b.tar.gz gcc-0231b076dc98eb02e3289b21ace1757782e3917b.tar.bz2 |
Fortran: Use char* for deferred length character arrays [PR82904]
Randomly during compiling the pass IPA: inline would ICE. This was
caused by a saved deferred length string. The length variable was not
set, but the variable was used in the array's declaration. Now using a
character pointer to prevent this.
PR fortran/82904
gcc/fortran/ChangeLog:
* trans-types.cc (gfc_sym_type): Use type `char*` for saved
deferred length char arrays.
* trans.cc (get_array_span): Get `.span` also for `char*` typed
arrays, i.e. for those that have INTEGER_TYPE instead of
ARRAY_TYPE.
gcc/testsuite/ChangeLog:
* gfortran.dg/deferred_character_38.f90: New test.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions