fail to compile the valid code

Uttam Pawar uttamp@us.ibm.com
Mon Nov 21 18:55:00 GMT 2005


Hi All,

Following code fails to compile.

$ cat test.f90
         real, pointer, dimension(:) :: vector
         data vector/ NULL() /
         end
$ gfortran test.f90

         data vector/ NULL() /
                   1
Error: Nonconstant array section at (1) in DATA statement

Can anybody verifies it, please?

Thanks in advance.

- Uttam



More information about the Fortran mailing list