hi again, There's a workaround. On the same system, compiling with
gfortran -g -O1 -c -o x.o x.f90 gives no error at all on many repeated tries. For the file https://codeberg.org/boud/cosmdist/src/branch/main/cosm_f90.f90 on which I discovered the error, gfortran -g -O0 -c -o x.o x.f90 is needed to compile with no error on the same system; the error still often occurs with '-O1'. Cheers Boud