This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71880] pointer to allocatable character
- From: "valeryweber at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Jul 2016 13:54:10 +0000
- Subject: [Bug fortran/71880] pointer to allocatable character
- Auto-submitted: auto-generated
- References: <bug-71880-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71880
--- Comment #1 from Valery Weber <valeryweber at hotmail dot com> ---
what about this one?
cat gcc-6.1b.f90
program t
character(:), dimension(:), allocatable, target :: c
character(:), dimension(:), pointer :: p
allocate(c(10),source='X')
p=>c(:)
write(*,*) 'p=<',p(1),'> c=<',c(1),'>',len(p(1))
end program t
gfortran-6.1.0 gcc-6.1b.f90
./a.out
p=<XXXXXXXXXX� p=<> c=<X> 32674