[Patch,Fortran] F2008 - allow a semicolon at the beginning of a line

Jerry DeLisle jvdelisle@verizon.net
Fri Jun 25 22:11:00 GMT 2010


On 06/25/2010 11:19 AM, Tobias Burnus wrote:
> Fortran 2008 allows - for free format - a semicolon as first item in a line:
>
> F2003 has (3.3.1.3 Free form statement termination)
> "A statement may alternatively be terminated by a “;” character that
> appears other than in a character
> context or in a comment. The “;” is not part of the statement. After a
> “;” terminator, another statement
> 11 may appear on the same line, or begin on that line and be continued.
> A “;” shall not appear as the first
> 12 nonblank character on a line. [...]"
>
> F2008 has (3.3.2.5 Free form statement termination):
> "A statement may alternatively be terminated by a ';' character that
> appears other than in a character context or in a comment. The ';' is
> not part of the statement. After a ';' terminator, another statement may
> appear on the same line, or begin on that line and be continued. [...]"
>
> Similarly for fixed form: Here, the text
> 'A “;” shall not appear as the first nonblank character on a line,
> except in character position 6.'
> disappeared.
>
> Note: If there is a label, a ";" is still not allowed as:
> "If a statement is labeled, the statement shall contain a nonblank
> character."
> and as ";" does not count as statement ...
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
> Tobias

OK, Thanks,

Jerry



More information about the Gcc-patches mailing list