Deviation from MS Fortan behavior

Toon Moene toon@moene.indiv.nluug.nl
Sun Sep 17 14:17:00 GMT 2000


Alois Maier wrote:
> 
> g77 does not compile this program:
> 
> > g77 -c a.for
> >a.for: In program `wk2la':
> >a.for:2:
> >   1000    FORMAT (1X,'ENTER THE NAME OF THE DATA (.ODF ASSUMED):'\)
> >                                                                  ^
> >Unrecognized character at (^) [info -f g77 M LEX]
> >a.for:2:
> >   1000    FORMAT (1X,'ENTER THE NAME OF THE DATA (.ODF ASSUMED):'\)

Thanks for your bug report.  Unfortunately, the backslash (\) character
is not in the Fortran character set; hence it is impossible to define
what the compiler "should" do with it.  MS Fortran's solution would be
one way to treat the character, but there might be others orthogonal to
their way.

Could you describe what effect this use of backslash in the format
statement has, using MS Fortran ?  Perhaps we can suggest another way of
getting the same result.

Hope this helps,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


More information about the Gcc-bugs mailing list