[Bug fortran/71880] pointer to allocatable character
valeryweber at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 14 13:54:00 GMT 2016
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
More information about the Gcc-bugs
mailing list