public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31627]  New: -bounds-check doesn't check lower bound of assumed-sized array
@ 2007-04-18 18:19 fxcoudert at gcc dot gnu dot org
  2007-04-18 18:19 ` [Bug fortran/31627] " fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-18 18:19 UTC (permalink / raw)
  To: gcc-bugs

The following code should tell us we have an out-of-bounds access at runtime:

$ cat a.f90 
subroutine foo(a)
  integer a(*), i
  i = 0
  a(i) = 42
end subroutine foo

program test
  integer x(42)
  call foo(x)
end program test
$ gfortran a.f90 -fbounds-check && ./a.out


-- 
           Summary: -bounds-check doesn't check lower bound of assumed-sized
                    array
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, 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=31627


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

end of thread, other threads:[~2007-05-22  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18 18:19 [Bug fortran/31627] New: -bounds-check doesn't check lower bound of assumed-sized array fxcoudert at gcc dot gnu dot org
2007-04-18 18:19 ` [Bug fortran/31627] " fxcoudert at gcc dot gnu dot org
2007-05-04 20:32 ` fxcoudert at gcc dot gnu dot org
2007-05-22  9:27 ` fxcoudert at gcc dot gnu dot org
2007-05-22  9:28 ` [Bug fortran/31627] [4.1/4.2 only] " 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).