Allocatable arrays are possible in Fortran 90 and up.
INTEGER, ALLOCATABLE, DIMENSION(:) :: test_int_array
Allocatable scalars such as allocatable characters are possible in Fortran 2003.
CHARACTER(LEN=:), ALLOCATABLE :: test_str
I am wondering is it possible to declare an array, fixed or allocatable, of allocatable characters? (Possibly like something below, which does not compile unfortunately.)
CHARACTER(LEN=:), ALLOCATABLE, DIMENSION(4) :: test_str_array
I found the syntax at http://software.intel.com/en-us/forums/showthread.php?t=77823. It works with ifort 12.1 but not with gfortran 4.6.1. Trying the work around of creating a user-defined type didn’t work either.