public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31822]  New: Missing run-time bound checks for character pointer => target
@ 2007-05-04 19:21 burnus at gcc dot gnu dot org
  2007-08-09 22:52 ` [Bug fortran/31822] " fxcoudert at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-04 19:21 UTC (permalink / raw)
  To: gcc-bugs

Test case. The comments show what NAG f95 -C=all prints at run time.

program ptr
  implicit none
  character(len=10), target :: s1
  character(len=5), pointer :: p1
  integer, volatile :: i
  i = 8
! Unequal character lengths (5 and 8) in pointer assignment
  p1 => s1(1:i)
  call bar(s1)
contains
  subroutine bar(s)
    character(len=*),target  :: s
    character(len=17),pointer :: p
! Unequal character lengths (17 and 10) in pointer assignment
    p => s
  end subroutine bar
end program ptr


-- 
           Summary: Missing run-time bound checks for character pointer =>
                    target
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 27766
             nThis:


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


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

end of thread, other threads:[~2008-12-18 10:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-04 19:21 [Bug fortran/31822] New: Missing run-time bound checks for character pointer => target burnus at gcc dot gnu dot org
2007-08-09 22:52 ` [Bug fortran/31822] " fxcoudert at gcc dot gnu dot org
2008-12-17  9:48 ` burnus at gcc dot gnu dot org
2008-12-17  9:57 ` burnus at gcc dot gnu dot org
2008-12-17 10:16 ` domob at gcc dot gnu dot org
2008-12-18 10:08 ` domob at gcc dot gnu dot org
2008-12-18 10:14 ` domob 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).