When compiling the following testprogram a false warning is issued about not using the label.
program testlabel open(unit=12, file="dummy",status="old",& action="read",err=99) print *,"file is now open" stop 99 print *,"could not open file ..." end program testlabel I used the following command to compile: >gfortran -c Test.F90 In file Test.F90:8 99 print *,"could not open file ..." 1 Warning: Label 99 at (1) defined but not used > I used the following gfortran version: >gfortran -v Using built-in specs. Target: i386-linux Configured with: ../gcc/configure --prefix=/tmp/gfortran-20060212/irun --enable-languages=c,fortran --host=i386-linux --with-gmp=/tmp/gfortran-20060212/gfortran_libs Thread model: posix gcc version 4.2.0 20060212 (experimental) > best regards, Jos de Kloe -- Summary: false warning abiout unused label Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kloedej at knmi dot nl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277