public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27786]  New: Bad interaction between Cray pointer, assumed-size array and bounds checking
@ 2006-05-28 13:52 fxcoudert at gcc dot gnu dot org
  2006-05-29  7:45 ` [Bug fortran/27786] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-05-28 13:52 UTC (permalink / raw)
  To: gcc-bugs

This reduced testcase is originally from the testsuite
gfortran.dg/cray_pointers_2.f90. It generates an incorrect out-of-bounds error
message when run with bounds-checking enabled.

$ cat cray_pointers_2.f90 
  integer targ(2)
  integer pte
  pointer(ptr,pte(*))
  ptr = loc(targ)

  targ(2) = -1
  print *, pte(2)
  end
$ gfortran -fbounds-check -fcray-pointer cray_pointers_2.f90 && ./a.out
Fortran runtime error: Array reference out of bounds


-- 
           Summary: Bad interaction between Cray pointer, assumed-size array
                    and bounds checking
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          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=27786


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

end of thread, other threads:[~2006-06-15 23:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-28 13:52 [Bug fortran/27786] New: Bad interaction between Cray pointer, assumed-size array and bounds checking fxcoudert at gcc dot gnu dot org
2006-05-29  7:45 ` [Bug fortran/27786] " pinskia at gcc dot gnu dot org
2006-05-31 12:45 ` patchapp at dberlin dot org
2006-06-07  0:32 ` langton at gcc dot gnu dot org
2006-06-08 21:04 ` langton at gcc dot gnu dot org
2006-06-08 21:06 ` langton at gcc dot gnu dot org
2006-06-09  6:53 ` [Bug fortran/27786] [4.1 only] " fxcoudert at gcc dot gnu dot org
2006-06-15 23:11 ` langton at gcc dot gnu dot org
2006-06-15 23:30 ` langton 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).