This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37420] New: [4.4 Regression] -Wunused-variable broken
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2008 09:09:30 -0000
- Subject: [Bug fortran/37420] New: [4.4 Regression] -Wunused-variable broken
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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