------- Additional Comments From post at tillmann-wegst dot de 2005-07-29 08:21 ------- I found that code containing allocatable fields in type statements compiles without complaints using "g95", so I was a bit perplex when moving to gfortran and getting the same error as reported here.
Consulting Metcalf et al, "fortran 95/2003 explained", chap. 7.12, pages 149f., I did not find anything as to a conflict between attributes "allocatable" and "dimension". Has there been a change in the Fortran95 specs? If it is not a gfortran bug, what would be a work-around? Declare the variable as a pointer, allocate the array in a subroutine and then direct the pointer variable to it? That seems like a way out, though clumsy. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20541