Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* f77/cpp bug?
@ 1995-08-09  4:00 Mark Hays
  1995-08-10  4:00 ` Dan Pop
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Hays @ 1995-08-09  4:00 UTC (permalink / raw)


Hello,

I think I may have found a bug in the DEC f77 compiler.

From the f77(1) manpage:
 "Arguments with the suffix .F are interpreted as FORTRAN source pro-
 grams which must be processed by the C preprocessor (cpp(1)) before
 being compiled."

From the cpp(1) manpage:
 "The cpp preprocessor accepts C++-style end of line comments (//).  This
 means that everything following the two slashes (//) to the end of the line
 in which they appear is considered as a comment."

Since there doesn't seem to be a way to turn off the
removal of C++ comments, may I assume that one should
never concatenate strings (with //) in DEC f77 .F
files?

I have a script that gets around this to a certain
extent -- combo of /usr/lib/cpp and sed; however, the
line numbers in the compiler errors are all screwed
up since I'm compiling the preprocessed version, so
it is far from an ideal workaround...

Has anyone else noticed this and found a better
solution?

Thanks,
Mark




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1995-08-11  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-09  4:00 f77/cpp bug? Mark Hays
1995-08-10  4:00 ` Dan Pop
1995-08-10  4:00   ` Mark Hays
1995-08-11  4:00   ` John Hascall
1995-08-11  4:00   ` Craig Neth USG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox