This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17678] USE statement incorrectly initializes allocatable array
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2004 16:01:26 -0000
- Subject: [Bug fortran/17678] USE statement incorrectly initializes allocatable array
- References: <20040926135843.17678.lei@il.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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