donn@hp-dcd.UUCP (05/10/84)
This message is empty.
jlg@lanl-a.UUCP (05/15/84)
>If you want a good one, how about > > INTEGER E7 > DO 10 E7 = 1, 10, 1 > >Doesn't work. Line numbers can't be over 99999. > >-Ron That's an error in your compiler! It's a perfectly legal Fortran do loop. However, if you want to make sure put a comma after the statement number. If your compiler doesn't allow the comma, it isn't standard conforming anyway. Also, the integer statement is not necessary since the do-variable is allowed to be of type integer, real, or double precision (again, if your compiler does not allow this you should get one that conforms to the standard). I wish people would stop submitting compiler bugs as evidence of Fortran inadequacy. There are enough real problems with Fortran syntax without bringing in buggy compilers. However, there are no ambiguities in the the Fortran grammar (with a smart enough lexical scanner, Fortran is LR(1)).