This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC PR19261 continuation character illegal as first non-blank character in statement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]