Description of problem: With some ancient, but working, fortran77 code, I ran into a little glitch. Specifically, the command (and error message): gfortran -O2 -w -ffixed-form [unimportant stuff] IF(INCX.EQ.INCY) IF(INCX-1) 5,20,60 1 Error: Unclassifiable statement in IF-clause at (1) After changing it to an if block: IF(INCX.EQ.INCY) THEN IF(INCX-1) 5,20,60 ENDIF the subroutine compiled cleanly. Version-Release number of selected component (if applicable): gcc version 4.0.0 20041214 (Red Hat 4.0.0-0.14.EL4) How reproducible: allways Steps to Reproduce: 1.take old ugly fortran 2.compile 3. Actual results: compilation error Expected results: no compilation error Additional info: This subroutine has been compiled correctly for years with many compilers on many architectures, and is probably legal fortran77. I have not tried it with gfortran on non-IA64 machines, but I suspect the bug exists across them all. -Nate
This is upstream PR17229, fixed in April. gfortran packages for RHEL4 U2 are based on 20050727 gcc-4_0-rhl-branch (which is based on 20050727 gcc-4_0-branch), so that fix is included.