The problem persists even if I replace the PRINT statement with a CONTINUE statement. See below:
$ cat error1_modified1.F
go to 1
1
. continue
print*,'hi'
end
$ g95 error1.F
In file error1.F:1
go to 1
1
(BTW, PRINT is an executable statement, according to the F77 standard.)
The point is that the program successfully compiles with any of the 3 modifications mentioned in my previous email. For e.g. by replacing '1' in lines 1 and 2 with something like '10'. For that matter, even the following compiles:
$ cat error1_modified2.F
go to 1
01
. print*,'hi'
end
My question is why does g95 exhibit the bias for a single-digit statement label at column 1? And if it doesn't want to accept an 'empty' single-digit-at-column-1 labeled line, it should just say so, and not indicate the error elsewhere!
Regards,
Sourav