public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30073]  New: Array out of bounds gives name of LHS array not RHS
@ 2006-12-05 14:06 burnus at gcc dot gnu dot org
  2006-12-05 14:30 ` [Bug fortran/30073] Array out of bounds gives name of RHS array not LHS array burnus at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-12-05 14:06 UTC (permalink / raw)
  To: gcc-bugs

In the following program the size of the array "a" is exeeded not of "t%b", but
gfortran claims otherwise:

Fortran runtime error: Array reference out of bounds for array 't', upper bound
of dimension 3 exceeded (in file 'test.f90', at line 10)

(That gfortran shows "t" rather than "b" or "t%b" is PR29800 and quit
unrelated.)


program main
   type test
      real, allocatable, dimension(:,:) :: b
   end type test
   real, allocatable, dimension(:,:,:) :: a
   type(test) :: t
   integer :: i
   allocate(a(5,1,1), t%b(5,3))
   t%b = 45.0
   do i = 1,2
     a(1:5,1,i) = t%b(1:5,i)
   end do
end program main


-- 
           Summary: Array out of bounds gives name of LHS array not RHS
           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: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-04-24 21:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-05 14:06 [Bug fortran/30073] New: Array out of bounds gives name of LHS array not RHS burnus at gcc dot gnu dot org
2006-12-05 14:30 ` [Bug fortran/30073] Array out of bounds gives name of RHS array not LHS array burnus at gcc dot gnu dot org
2007-01-22 21:32 ` fxcoudert at gcc dot gnu dot org
2010-04-15 16:11 ` kargl at gcc dot gnu dot org
2010-04-15 16:28 ` kargl at gcc dot gnu dot org
2010-04-15 19:55 ` kargl at gcc dot gnu dot org
2010-04-15 21:32 ` kargl at gcc dot gnu dot org
2010-04-15 21:44 ` kargl at gcc dot gnu dot org
2010-04-16 15:49 ` kargl at gcc dot gnu dot org
2010-04-16 15:50 ` kargl at gcc dot gnu dot org
2010-04-16 15:53 ` kargl at gcc dot gnu dot org
2010-04-16 15:56 ` kargl at gcc dot gnu dot org
2010-04-16 16:36 ` kargl at gcc dot gnu dot org
2010-04-24 20:32 ` kargl at gcc dot gnu dot org
2010-04-24 21:47 ` kargl 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).