$ cat data.f subroutine foo real a data a /1.3/ end $ gfortran -c -Wall -O3 data.f $ g77 -c -Wall -O3 data.f data.f: In subroutine `foo': In file included from data.f:0: data.f:2: warning: unused variable 'a'
I'd expect a warning, like g77. -- Summary: data-initialized unused variables not detected Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkoenig at gcc dot gnu dot org OtherBugsDependingO 33056 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33884