public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39286] Missing out-of-bounds diagnostic
       [not found] <bug-39286-4@http.gcc.gnu.org/bugzilla/>
@ 2013-08-09  7:55 ` tkoenig at gcc dot gnu.org
  0 siblings, 0 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2013-08-09  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tkoenig at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Closing as dup.

*** This bug has been marked as a duplicate of bug 36683 ***


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

* [Bug fortran/39286] Missing out-of-bounds diagnostic
  2009-02-24  9:56 [Bug fortran/39286] New: " burnus at gcc dot gnu dot org
  2009-03-08 16:08 ` [Bug fortran/39286] " pault at gcc dot gnu dot org
  2009-04-29 14:12 ` dominiq at lps dot ens dot fr
@ 2009-04-29 14:20 ` dominiq at lps dot ens dot fr
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-04-29 14:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dominiq at lps dot ens dot fr  2009-04-29 14:19 -------
I have modified the code referenced in pr36683 as:

PROGRAM calls 
   IMPLICIT NONE 
   INTEGER :: a(2), b(3), c(6), n , i
   c = myfunc(a,b) 
   WRITE(*,*) "c:",c    !! gives "c: 1 2 3 4 5 6" 
   n = 5 
   c = 0 
   c(1:n) = (/(i+2,i=0,n)/)/myfunc(a,b)
   WRITE(*,*) "c:",c    !! gives "c: 1 2 3 4 5 0" 
CONTAINS 
FUNCTION myfunc(v1,v2) RESULT(v3) 
   IMPLICIT NONE 
   INTEGER, INTENT(IN) :: v1(:), v2(:) 
   INTEGER :: v3(SIZE(v1,1)*SIZE(v2,1)) 
   INTEGER :: i, j, k 
   DO i=1,SIZE(v1,1) 
      DO j=1,SIZE(v2,1) 
         k = (i-1)*SIZE(v2,1) + j 
         v3(k) = k 
      ENDDO 
   ENDDO 
   WRITE(*,*) "myfunc: v3:",v3    !! always gives "v3: 1 2 3 4 5 6" 
END FUNCTION myfunc 
END PROGRAM calls 

and I don't get any run time error even with '-fbounds-check'.
This confirms that this pr is a duplicate of pr36683.


-- 


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


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

* [Bug fortran/39286] Missing out-of-bounds diagnostic
  2009-02-24  9:56 [Bug fortran/39286] New: " burnus at gcc dot gnu dot org
  2009-03-08 16:08 ` [Bug fortran/39286] " pault at gcc dot gnu dot org
@ 2009-04-29 14:12 ` dominiq at lps dot ens dot fr
  2009-04-29 14:20 ` dominiq at lps dot ens dot fr
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-04-29 14:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dominiq at lps dot ens dot fr  2009-04-29 14:12 -------
I wonder if this not a duplicate of pr36683.


-- 


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


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

* [Bug fortran/39286] Missing out-of-bounds diagnostic
  2009-02-24  9:56 [Bug fortran/39286] New: " burnus at gcc dot gnu dot org
@ 2009-03-08 16:08 ` pault at gcc dot gnu dot org
  2009-04-29 14:12 ` dominiq at lps dot ens dot fr
  2009-04-29 14:20 ` dominiq at lps dot ens dot fr
  2 siblings, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-03-08 16:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pault at gcc dot gnu dot org  2009-03-08 16:07 -------
Confirmed.

For some reason, we have never added a bounds check to assignments.  The first
testcase uses a check internal to the function.  Once an extra expression is
added to the rhs, there is nothing to check against.

Cheers

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-03-08 16:07:58
               date|                            |


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


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

end of thread, other threads:[~2013-08-09  7:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39286-4@http.gcc.gnu.org/bugzilla/>
2013-08-09  7:55 ` [Bug fortran/39286] Missing out-of-bounds diagnostic tkoenig at gcc dot gnu.org
2009-02-24  9:56 [Bug fortran/39286] New: " burnus at gcc dot gnu dot org
2009-03-08 16:08 ` [Bug fortran/39286] " pault at gcc dot gnu dot org
2009-04-29 14:12 ` dominiq at lps dot ens dot fr
2009-04-29 14:20 ` dominiq at lps dot ens dot fr

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).