public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables
@ 2007-03-13 14:12 manfred99 at gmx dot ch
2007-03-13 14:59 ` [Bug fortran/31162] " burnus at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: manfred99 at gmx dot ch @ 2007-03-13 14:12 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
@ 2007-03-13 14:59 ` burnus at gcc dot gnu dot org
2007-06-12 0:23 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-13 14:59 UTC (permalink / raw)
To: gcc-bugs
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2007-03-13 14:58:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
2007-03-13 14:59 ` [Bug fortran/31162] " burnus at gcc dot gnu dot org
@ 2007-06-12 0:23 ` jvdelisle at gcc dot gnu dot org
2007-06-13 5:16 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-12 0:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-06-12 00:22 -------
There are two different code paths in the compiler for implicit and implicit
none. I will see if I can find the spot for this check to be added. I came
across it once before.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
2007-03-13 14:59 ` [Bug fortran/31162] " burnus at gcc dot gnu dot org
2007-06-12 0:23 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-13 5:16 ` jvdelisle at gcc dot gnu dot org
2007-06-15 18:20 ` patchapp at dberlin dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-13 5:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-06-13 05:16 -------
Found the problem. We are checking the iterator variable type but not the
start, end, and step value types. Patch will come sometime in the next few
days.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-03-13 14:58:56 |2007-06-13 05:16:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
` (2 preceding siblings ...)
2007-06-13 5:16 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-15 18:20 ` patchapp at dberlin dot org
2007-06-22 1:50 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-06-15 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-06-15 18:20 -------
Subject: Bug number PR31162
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01077.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
` (3 preceding siblings ...)
2007-06-15 18:20 ` patchapp at dberlin dot org
@ 2007-06-22 1:50 ` jvdelisle at gcc dot gnu dot org
2007-06-22 1:54 ` jvdelisle at gcc dot gnu dot org
2007-06-22 2:01 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-22 1:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-06-22 01:50 -------
Subject: Bug 31162
Author: jvdelisle
Date: Fri Jun 22 01:50:09 2007
New Revision: 125938
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125938
Log:
2007-06-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31162
* resolve.c (gfc_resolve_iterator_expr): Add check for REAL using
gfc_notify_standard. (gfc_resolve_iterator): Remove check.
(resolve_branch): Change "Obsolete" to "Deleted feature".
* io.c (resolve_tag): Ditto.
* match.c (gfc_match_pause, gfc_match_assign, gfc_match_goto): Ditto.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/io.c
trunk/gcc/fortran/match.c
trunk/gcc/fortran/resolve.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
` (4 preceding siblings ...)
2007-06-22 1:50 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-22 1:54 ` jvdelisle at gcc dot gnu dot org
2007-06-22 2:01 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-22 1:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-06-22 01:54 -------
Subject: Bug 31162
Author: jvdelisle
Date: Fri Jun 22 01:54:27 2007
New Revision: 125939
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125939
Log:
2007-06-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31162
* gfortran.dg/assign.f90: Update test.
* gfortran.dg/real_do_1.f90: Update test.
* gfortran.dg/gomp/omp_do1.f90: Update test.
* gfortran.dg/warnings_are_errors_1.f: Update test.
* gfortran.dg/g77/20010519-1.f: Update test.
* gfortran.dg/g77/pr9258.f: Update test.
* gfortran.dg/g77/960317-1.f: Update test.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/assign.f90
trunk/gcc/testsuite/gfortran.dg/g77/20010519-1.f
trunk/gcc/testsuite/gfortran.dg/g77/960317-1.f
trunk/gcc/testsuite/gfortran.dg/g77/pr9258.f
trunk/gcc/testsuite/gfortran.dg/gomp/omp_do1.f90
trunk/gcc/testsuite/gfortran.dg/real_do_1.f90
trunk/gcc/testsuite/gfortran.dg/warnings_are_errors_1.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/31162] missing warning for real do-loops with implicit typed variables
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
` (5 preceding siblings ...)
2007-06-22 1:54 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-22 2:01 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-22 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-06-22 02:01 -------
Fixed on trunk. closing
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-06-22 2:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-13 14:12 [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables manfred99 at gmx dot ch
2007-03-13 14:59 ` [Bug fortran/31162] " burnus at gcc dot gnu dot org
2007-06-12 0:23 ` jvdelisle at gcc dot gnu dot org
2007-06-13 5:16 ` jvdelisle at gcc dot gnu dot org
2007-06-15 18:20 ` patchapp at dberlin dot org
2007-06-22 1:50 ` jvdelisle at gcc dot gnu dot org
2007-06-22 1:54 ` jvdelisle at gcc dot gnu dot org
2007-06-22 2:01 ` jvdelisle at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).