[Bug fortran/37420] New: [4.4 Regression] -Wunused-variable broken
janus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 8 09:10:00 GMT 2008
Consider the following Fortran code:
subroutine s(x)
real :: x
integer :: i
end subroutine
Compiling this with "gfortran-4.3 -Wunused-variable" triggered two warnings:
Warning: Unused variable 'i' declared at (1)
Warning: Unused dummy argument 'x' at (1)
With recent trunk builds the first one is missing, and only the missing dummy
argument is detected. This seems to be a Fortran-specific problem, since unused
variables in C code are reported as expected.
Observed on x86_64-unknown-linux-gnu with rev. 140091.
--
Summary: [4.4 Regression] -Wunused-variable broken
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37420
More information about the Gcc-bugs
mailing list