fortran compilation issue

Hi,
I am getting following error when i try to compile :

Error: Expected variable in READ statement at (1)
      read(12,*) ((l1to2(l,j),j=1,2),l=1,ngl(2,4))

Also i am getting following error :

Error: Syntax error in COMMON statement at (1)

at some statements.

I am using mpif90 -f90=gfortran to compile the code. mpif90 is mpich2's mpif90 compiled with gfortran.

what can be the issue? What should i use?

You never dimensioned your 2d array. Here is a similar problem, which might be an example, too: problem with 2d arrays in ... - Intel� Software Network