This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables
- From: "manfred99 at gmx dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2007 14:12:24 -0000
- Subject: [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
real r
do r=1.0,2.0
print*,r
enddo
end
gives
legacy.f:2.10:
do r=1.0,2.0
1
Warning: Obsolete: REAL DO loop iterator at (1)
which is ok, however
do r=1.0,2.0
print*,r
enddo
end
compiles without warning!
the same for
implicit real(a-z)
do r=1.0,2.0
print*,r
enddo
end
Additionally: It seems this warning is tied to -std=legacy, perhaps
it would make more sense to tie it to -Wsurprising as it was the case for g77.
--
Summary: missing warning for real do-loops with implicit typed
variables
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: manfred99 at gmx dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162