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: Bogus "error: unterminated comment"


Smith-Rowland, Edward M wrote:
I'm getting this error like gfortran is looking for the end of a
C-style comment. The files are fixed form and have a comment ending
in "/*".

I tried to type my own reduced test case, unterm_comment.for, on
Linux and was unable to reproduce the error.

It may be salient that RFLCT.FOR has DOS line endings while
unterm_comment.for does not.

Adding to the previous answers, your problem can be solved with the "-x f95 -ffixed-form" command line option.


Cheers,
- Tobi


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