Re: READ error with Gfortran



On Feb 19, 3:25 pm, Thomas Koenig <Thomas.Koe...@xxxxxxxxx> wrote:
Ash <ashutosh.mis...@xxxxxxxxx> wrote:
++++++++++++++++++++++++++++++++++++++++++++++++++=
In file breader.f90:12

read(12,*) (tissid(i)),(sge(i,1)),(sge(i,2))
1
Error: Expected variable in READ statement at (1)

This is indeed a syntax error. (tsssid(i)) is an expression,
not a variable (just as tssid(i)+0 would be). You are trying to
read something into that expression, and gfortran is telling you
it expects a variable instead.

You probably want to use

read(12,*) tissid(i),sge(i,1),sge(i,2)

I have no idea why ifort accepts this, it's probably a bug.

Thanks ! That DID do the trick !

Strange about the Ifort ..hmm..

Cheers,

-A

.



Relevant Pages

  • Re: Bizarre Printing Problem
    ... Its not a bug, its a feature. ... >Really strange problem. ... >WIndows printers with a VFP8 application. ... Generates a syntax error. ...
    (microsoft.public.fox.vfp.reports.printing)
  • Re: open syntax error with gfortran
    ... program compiles perfectly with ifort. ... However, when I try gfortran, I ... Syntax error in OPEN statement at ...
    (comp.lang.fortran)
  • Re: READ error with Gfortran
    ... Ash wrote: ... This is indeed a syntax error. ... I have no idea why ifort accepts this, it's probably a bug. ...
    (comp.lang.fortran)
  • Re: :IRB Bug
    ... Maybe IRB bug!! ... SyntaxError::5: syntax error, unexpected tASSOC ...
    (comp.lang.ruby)
  • Need help with a error message
    ... Microsoft OLE DB Provider for ODBC Drivers error '80040e14' ... How only one acctno can have error generated, ... Is it a bug, should it need any patch installed? ... My feeling is, it can't be a syntax error because, if there is a syntax error, then all the records should be affected. ...
    (microsoft.public.frontpage.client)