This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16222] New: [gfortran] non-integral DO loop variables are unsupported.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]