public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30655]  New: Undue out-of-bounds warning
@ 2007-01-31 14:18 fxcoudert at gcc dot gnu dot org
  2007-01-31 18:13 ` [Bug fortran/30655] " tkoenig at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-01-31 14:18 UTC (permalink / raw)
  To: gcc-bugs

gfortran should not report an out-of-bounds access on the following code:

$ cat a.f90
  integer i(12), j
  j = -1
  i(0:j) = 42
  end
$ gfortran a.f90                       
a.f90:3.4:

  i(0:j) = 42
   1
Warning: Array reference at (1) is out of bounds


Compiling with -fbounds-check and running it doesn't error, which means the
-fbounds-check code is generated fine. But, somewhere, the front-end is
over-zealous (it doesn't know about stride). I thought I had that fixed at some
point...


-- 
           Summary: Undue out-of-bounds warning
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
OtherBugsDependingO 27766
             nThis:


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


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

end of thread, other threads:[~2007-03-24 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 14:18 [Bug fortran/30655] New: Undue out-of-bounds warning fxcoudert at gcc dot gnu dot org
2007-01-31 18:13 ` [Bug fortran/30655] " tkoenig at gcc dot gnu dot org
2007-01-31 22:06 ` fxcoudert at gcc dot gnu dot org
2007-03-14 10:48 ` fxcoudert at gcc dot gnu dot org
2007-03-24 20:20 ` fxcoudert at gcc dot gnu dot org
2007-03-24 20:21 ` fxcoudert 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).