------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-08-06 21:18 ------- I don't think it's a duplicate, and I don't think it has anything to do with allocatable either:
$ cat b.f90 subroutine foo(n) integer, allocatable :: ivec(:) integer :: jvec(n) allocate (ivec(n)) ivec = [1,2,3] write (*,*) ivec jvec = [1,2,3] write (*,*) jvec end program test call foo (2) end $ gfortran -fbounds-check b.f90 && ./a.out 1 2 1 2 -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org OtherBugsDependingO| |27766 nThis| | Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31059