Hi Paul,
Your patch fixes the ICE and pass the tests. However I see
At line 22 of file pr78990.f90
Fortran runtime error: Attempting to allocate already allocated variable
‘return_t1'
for the original tests (with mold or source). This runtime error depends on the
options:
% gfc pr78990.f90
% a.out
At line 22 of file pr78990.f90
Fortran runtime error: Attempting to allocate already allocated variable
'return_t1'
Error termination. Backtrace:
…
% gfc pr78990.f90 -fno-backtrace
% a.out
0 0 0
% gfc pr78990.f90 -m32
% a.out
0 0 0
% gfc pr78990.f90 -O
% a.out
0 0 0
The problem seems related to the line
print*,v2%i
Cheers,
Dominique