This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/17678] USE statement incorrectly initializes allocatable array


------- Additional Comments From tobi at gcc dot gnu dot org  2004-09-28 16:01 -------
This bug doesn't affect host associated variables. E.g.
program main
  integer, dimension(:), allocatable :: bar
  allocate (bar(100))
  call init
contains
subroutine init
  if (.not.allocated(bar)) then
     print *, 'oops'
     call abort
  endif
end subroutine init
end program main

works as expected

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]