I have two packages where a workaround of reducing the compilation optimization level avoids runtime failures:
1 Use of -O1 to avoid a numerical test error "zdot wrong" https://github.com/GlobalArrays/ga/issues/249
2 Use of -fno-lto to avoid segmentation faults https://gitlab.com/QEF/q-e/-/issues/460
It seems like the above problems are specific to gfortran-12 on f36.