Page 1 of 1

GCC-gfortran: bug in xml.F ?

Posted: Sun Oct 01, 2006 2:38 am
by lahaye
Hi,

In xml.F / xml.f / xml/f90 , there is this code snippet:

Code: Select all

       SUBROUTINE XML_TAG( tag, name, type, param, comment )
          IMPLICIT NONE
          CHARACTER (LEN=*) :: tag
          CHARACTER (LEN=*),OPTIONAL :: name
          CHARACTER (LEN=*),OPTIONAL :: type
          CHARACTER (LEN=*),OPTIONAL :: param
          CHARACTER (LEN=*),OPTIONAL :: comment
The 'tag' parameter is NOT optional and thus it is always required.
However, in xml.f , xml_writer.f , electron.f and main.f there
are lines like this:

CALL XML_CLOSE_TAG

which is wrong, I suppose. At least the gfortran compiler (4.1.2)
chokes on this and I solved this issue by replacing all occurences
of 'empty' calls of
CALL XML_CLOSE_TAG
by
CALL XML_CLOSE_TAG("")

And then gfortran compiles vasp like a charm!

Rob.

GCC-gfortran: bug in xml.F ?

Posted: Sun Oct 01, 2006 6:31 am
by lahaye
Please ignore above message.
It appears to be a bug in GCC-gfortran, and not in the vasp code.

Rob.

GCC-gfortran: bug in xml.F ?

Posted: Tue Oct 03, 2006 8:40 am
by admin
you are right, this is a gfortran bug...