public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported.
@ 2004-06-26 22:01 gcc-bugzilla at gcc dot gnu dot org
2004-06-26 22:10 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-06-26 22:01 UTC (permalink / raw)
To: gcc-bugs
Fortran 77 permits and g77 supports non-integral DO loop variables.
This is a "Deleted feature" in Fortran 90/95. However, gfortran will
need to support the following:
program cc
real x, dx
dx = 0.1e0
do x = 0.e0, 1.e0, dx
print*, x
end do
end
Environment:
System: FreeBSD c-67-168-59-70.client.comcast.net 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Sat Apr 24 10:33:08 PDT 2004 kargl@c-67-168-59-70.client.comcast.net:/usr/obj/usr/src/sys/HOTRATS i386
host: i386-unknown-freebsd5.2
build: i386-unknown-freebsd5.2
target: i386-unknown-freebsd5.2
configured with: ../gcc/configure --prefix=/home/kargl/gcc/work --disable-libmudflap --enable-languages=c,f95
How-To-Repeat:
kargl[217] gfortran -o cc cc.f
In file cc.f:4
do x = 0.e0, 1.e0, dx
1
Error: Loop variable at (1) must be a scalar INTEGER
------- Additional Comments From kargl at c-67-168-59-70 dot client dot comcast dot net 2004-06-26 21:59 -------
Fix:
Don't know, yet.
--
Summary: [gfortran] non-integral DO loop variables are
unsupported.
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at c-67-168-59-70 dot client dot comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.2
GCC host triplet: i386-unknown-freebsd5.2
GCC target triplet: i386-unknown-freebsd5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] [gfortran] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
@ 2004-06-26 22:10 ` pinskia at gcc dot gnu dot org
2004-08-07 22:07 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-26 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-26 22:08 -------
Confirmed, it is only obsolescent in Fortran 90 but deleted in Fortran 95.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-06-26 22:08:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
2004-06-26 22:10 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
@ 2004-08-07 22:07 ` pinskia at gcc dot gnu dot org
2004-09-08 19:23 ` toon at moene dot indiv dot nluug dot nl
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-07 22:07 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
2004-06-26 22:10 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
2004-08-07 22:07 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
@ 2004-09-08 19:23 ` toon at moene dot indiv dot nluug dot nl
2004-11-28 0:56 ` sgk at troutmask dot apl dot washington dot edu
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-09-08 19:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2004-09-08 19:23 -------
It's deleted in Fortran 95, so an extension - mark it such.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement
GCC host triplet|i386-unknown-freebsd5.2 |
GCC target triplet|i386-unknown-freebsd5.2 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-09-08 19:23 ` toon at moene dot indiv dot nluug dot nl
@ 2004-11-28 0:56 ` sgk at troutmask dot apl dot washington dot edu
2004-12-10 2:30 ` sgk at troutmask dot apl dot washington dot edu
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2004-11-28 0:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2004-11-28 00:56 -------
See
http://gcc.gnu.org/ml/fortran/2004-11/msg00224.html
for a fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-28 0:56 ` sgk at troutmask dot apl dot washington dot edu
@ 2004-12-10 2:30 ` sgk at troutmask dot apl dot washington dot edu
2004-12-12 20:27 ` pbrook at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2004-12-10 2:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2004-12-10 02:30 -------
This is a better patch.
http://gcc.gnu.org/ml/fortran/2004-12/msg00026.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-12-12 20:27 ` pbrook at gcc dot gnu dot org
@ 2004-12-12 20:27 ` cvs-commit at gcc dot gnu dot org
2004-12-12 20:30 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-12 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-12 20:27 -------
Subject: Bug 16222
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pbrook@gcc.gnu.org 2004-12-12 20:27:02
Modified files:
gcc/fortran : ChangeLog array.c gfortran.h resolve.c
trans-stmt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: real_do_1.f90
Log message:
2004-12-12 Steven G. Kargl <kargls@comcast.net>
Paul Brook <paul@codesourcery.com>
PR fortran/16222
* resolve.c (gfc_resolve_iterator_expr): New function.
(gfc_resolve_iterator): Use it. Add real_ok argument. Convert
start, end and stride to correct type.
(resolve_code): Pass extra argument.
* array.c (resolve_array_list): Pass extra argument.
* gfortran.h (gfc_resolve): Add prototype.
* trans-stmt.c (gfc_trans_do): Remove redundant type conversions.
Handle real type iterators.
testsuite/
* gfortran.dg/real_do_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.268&r2=1.269
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/array.c.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.45&r2=1.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&r1=1.22&r2=1.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4740&r2=1.4741
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/real_do_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-12-10 2:30 ` sgk at troutmask dot apl dot washington dot edu
@ 2004-12-12 20:27 ` pbrook at gcc dot gnu dot org
2004-12-12 20:27 ` cvs-commit at gcc dot gnu dot org
2004-12-12 20:30 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-12-12 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pbrook at gcc dot gnu dot org 2004-12-12 20:27 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16222] non-integral DO loop variables are unsupported.
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-12-12 20:27 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-12 20:30 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-12 20:30 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16222
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-12-12 20:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-26 22:01 [Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported gcc-bugzilla at gcc dot gnu dot org
2004-06-26 22:10 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
2004-08-07 22:07 ` [Bug fortran/16222] " pinskia at gcc dot gnu dot org
2004-09-08 19:23 ` toon at moene dot indiv dot nluug dot nl
2004-11-28 0:56 ` sgk at troutmask dot apl dot washington dot edu
2004-12-10 2:30 ` sgk at troutmask dot apl dot washington dot edu
2004-12-12 20:27 ` pbrook at gcc dot gnu dot org
2004-12-12 20:27 ` cvs-commit at gcc dot gnu dot org
2004-12-12 20:30 ` pinskia 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).