[Patch, fortran] Fix PR19101 missing & in character continuation not caught

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Mar 8 20:11:00 GMT 2006


On Wed, Mar 08, 2006 at 05:52:30PM +0100, Paul Thomas wrote:
> 
> >void
> >gfc_gobble_whitespace (void)
> >{
> >       {
> >          gfc_warning_now ("Nonconforming tab character at %C; "
> >
>                              "repetitions will be ignored.");
> 
> >          seen_tab = true;
> >       }
> >
> >But, this can't deal with the fixed-form, column 1, issue.
> >
> >
> It seems to me that a one-off warning to go check the source would be 
> the way to do it.
> 

IMHO, it is an error to use a tab.  As I stated, -fno-tabs or
-pedantic or -std=f95 are the only options that will trigger
the error.

Your suggestion also doesn't handle the problem with fixed-form
source code with a tab in column 1.  My current patch deals with
tab in fixed-form and free-form code in an almost consistent 
manor (ie., the error messages are slightly different in that 
a locus can be reported for free-form).

-- 
Steve



More information about the Fortran mailing list