GCC-gfortran: bug in xml.F ?
Posted: Sun Oct 01, 2006 2:38 am
Hi,
In xml.F / xml.f / xml/f90 , there is this code snippet:
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.
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
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.