[CMake] cmake locks when parsing a fortran file ending with a comment and not end-of-line

lucatrv lucatrv at hotmail.com
Wed Jun 6 04:38:58 EDT 2007


> Do you know if this due to the missing end-of-line at the end? Or is it
> connected to the comment?

It is due to the missing end-of-line at the end of the file when the last 
line has a comment.
It doesn't happen if there is an end-of-line character at the end of the 
file, or if the last line doesn't end with a comment.

> I have always found that behaviour of text editors very annoying, because 
> at least some programming languages
> have trouble reading files which end so abruptly (after all: it is called 
> an end-of-line character, not a line-separator
> character and with this behaviour there is no way of telling the 
> difference between a truncated file and an ordinary
> file).

I agree with you... but unfortunately they exist...

Luca

PS I send you enclosed a test file so that you can reproduce the bug 
yourself

PS2 I noticed that the fortran file I sent earlier had an error
    PRINT *, TEST
which I've now corrected into
    PRINT *, 'TEST' 
-------------- next part --------------
PROGRAM TEST
    PRINT *, 'TEST'
END ! comment


More information about the CMake mailing list