------- Comment #1 from dominiq at lps dot ens dot fr 2007-08-01 15:10 ------- A similar problem occurs with gfortran.fortran-torture/execute/equiv_5.f which hangs (does not stop, but no CPU time used). The following patch makes the test pass:
[karma] f90/bug% diff /opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.fortran-torture/execute/equiv_5.f equiv_5_db.f 17,21c17,21 < INTEGER SMALL(2) < INTEGER LARGE(2) < INTEGER RIGHT(2) < INTEGER DIVER(2) < INTEGER LOG10(2) --- > INTEGER(4) SMALL(2) > INTEGER(4) LARGE(2) > INTEGER(4) RIGHT(2) > INTEGER(4) DIVER(2) > INTEGER(4) LOG10(2) 212c212,213 < INTEGER A, A1, B, C, D --- > INTEGER(4) A > INTEGER A1, B, C, D The reason why it works is pretty obvious, but I don't have any idea on how gfortran can detect the problem with the original test. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32956