From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Description of problem: When trying to compile the fortran file below gfortran produces an internal compiler error. Version-Release number of selected component (if applicable): gcc4-gfortran-4.0.0-0.41.fc3 How reproducible: Always Steps to Reproduce: gfortran -c hwbran.f --- start of file hwbran.f --- SUBROUTINE HWBRAN(KPAR) IF (NTRY.GT.NBTRY) CALL HWWARN('HWBRAN',100,*999) IF (ID.EQ.13) THEN IF (QLST.GT.QCDL3) THEN QKTHR=2.*HWBVMC(N) IF (QLST.GT.QKTHR) THEN RN=HWRGEN(N) ENDIF ENDIF ENDIF 999 END --- end of file hwbran.f --- Actual Results: hwbran.f: In function 'hwbran': hwbran.f:6: internal compiler error: in convert_move, at expr.c:339 Expected Results: It compiles without problem with g77. Additional info: The file below is only a minimalistic fragment from the CERNLIB file <http://wwwasd.web.cern.ch/wwwasd/cernlib/download/2004_source/src/mclibs/herwig/code/hwbran.F>
Simplified testcase: SUBROUTINE FOO (A) REAL T, A, BAZ CALL BAR (*10) T = 2 * BAZ () IF (T.GT.0) T = BAZ () 10 END
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02179.html
Should be fixed in gcc-4.0.0-9 in rawhide.