Makedepf90 bug

lucatrv lucatrv@hotmail.com
Mon Jun 4 10:28:00 GMT 2007


I regularily use the very convenient utility Makedepf90 for automatic update 
of f90 dependencies in my makefiles:
http://www.helsinki.fi/~eedelman/makedepf90.html

It is a "substitute" of the gfortran missing "gcc -M" feature, written by 
the gfortran maintainer Erik Edelmann. However, I'd like to signal a 
possible bug which I recently discovered.

Makedepf90 locks when parsing the following simple code:

PROGRAM TEST
  CALL FUNC ( 'string1', &
       'string2')
END PROGRAM TEST

However it works if the code doesn't use line continuation:

PROGRAM TEST
  CALL FUNC ( 'string1', 'string2')
END PROGRAM TEST

Notice that the problem seems to happen only when the code is passing 
strings and has line continuation (&). The following code is corrrectly 
handled:

PROGRAM TEST
  REAL A, B
  CALL FUNC ( A, &
       B)
END PROGRAM TEST

Moreover, also the fixed-form (.f) version of the code is correctly handled:

      PROGRAM TEST
      CALL FUNC ( 'string1',
     &     'string2')
      END PROGRAM TEST

Regards,
Luca



More information about the Fortran mailing list