This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33884] New: data-initialized unused variables not detected
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2007 19:26:37 -0000
- Subject: [Bug fortran/33884] New: data-initialized unused variables not detected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ 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