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

--- Comment #15 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 
2011-07-12 14:19:24 UTC ---
On Tue, Jul 12, 2011 at 01:51:40PM +0000, boschmann at tp1 dot
physik.uni-siegen.de wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45170
> 
> Hans-Werner Boschmann <boschmann at tp1 dot physik.uni-siegen.de> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |boschmann at tp1 dot
>                    |                            |physik.uni-siegen.de
> 
> --- Comment #14 from Hans-Werner Boschmann <boschmann at tp1 dot 
> physik.uni-siegen.de> 2011-07-12 13:51:08 UTC ---
> I've got one more item for the TODO list:
> 
> character(:),allocatable::string
> integer::length
> length=5
> allocate(character(len=length)::string)
> 
> This is not yet accepted by gfortran. Is there any other way to allocate
> "string" without a primitive like string=repeat(" ",10)?

laptop:kargl[212] gfc4x -o z g.f90
laptop:kargl[213] ./z
 yes!!
laptop:kargl[214] cat g.f90
character(:),allocatable::string
string='yes!!'
print *, string
end

Reply via email to