------- Comment #6 from burnus at gcc dot gnu dot org  2010-03-17 10:03 -------
FIXED on the trunk (4.5).

Richard: Thanks for the clear bug report! And for making the middle-end smarter
with regards to bonds.

Actually, will this middle-end change cause problems for inlining such
old-style Fortran code as below?

  real A(100)
  call sub(A(1), 100)  ! Correct syntax: "call sub(A, 100)"

  subroutine sub(x, n)
    integer n
    real x(*) ! Or: "real x(n)" to be slightly more modern
    x(n) = 5

(I think the code was never valid but one can find it quite often in old code
that it passes the first array element to a procedure, which expects an array.)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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

Reply via email to