public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16907] New: Non-integer array indices rejected
@ 2004-08-06 22:26 reichelt at gcc dot gnu dot org
  2004-08-07 22:07 ` [Bug fortran/16907] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-06 22:26 UTC (permalink / raw)
  To: gcc-bugs

The following code is accepted without warning by g77, but rejected
by gfortran:

====================================
       integer I, A(10)
       I=A(1.0)
       end
====================================

 In file bug.f:2

       I=A(1.0)                                                         
          1
Error: Array index at (1) must be of INTEGER type

But I suppose there's lots of code containing non-integer array indices
so IMHO this should only be a warning in gfortran (and an error with
-pedantic like in g77).

This issue is similar to the non-integer loop variables in PR 16222.

-- 
           Summary: Non-integer array indices rejected
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16907


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-20  2:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 22:26 [Bug fortran/16907] New: Non-integer array indices rejected reichelt at gcc dot gnu dot org
2004-08-07 22:07 ` [Bug fortran/16907] " pinskia at gcc dot gnu dot org
2005-01-06 14:41 ` tobi at gcc dot gnu dot org
2005-03-13 18:46 ` cvs-commit at gcc dot gnu dot org
2005-03-13 19:08 ` cvs-commit at gcc dot gnu dot org
2005-03-13 19:09 ` cvs-commit at gcc dot gnu dot org
2005-03-13 19:10 ` tobi at gcc dot gnu dot org
2005-04-20  2:19 ` 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).