RFC PR19261 continuation character illegal as first non-blank character in statement
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 6 03:19:00 GMT 2006
On Thu, Oct 05, 2006 at 08:20:11PM -0700, Jerry DeLisle wrote:
> Hi all,
>
> Similar to the other 'continuation' related patches, do we want this to
> give a warning only or an error?
>
> Do we want to do this in all cases or only when -pedantic or -std=f95 or
> -std=f2003
>
> From the F95 Standard: 3.3.1.3
>
> "No line shall contain a single "&" as the only nonblank character or as
> the only nonblank character before an "!" that initiates a comment."
>
> I am finding the best place to do this check is in scanner.c (load_line).
>
I would suggest a warning for everything except -pedantic. With
-pedantic, make it an error.
--
Steve
More information about the Fortran
mailing list