http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39286
Thomas Koenig changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
--- 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
--- 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
--- 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 agains