Gfortran from SVN: "Error: Syntax error in argument list at (1)"

Rob spamrefuse@yahoo.com
Fri May 4 06:42:00 GMT 2007


Brooks Moses <bmoses at stanford dot edu> wrote:

>> On Thu, May 03, 2007 at 10:57:54PM -0700, Rob
wrote:
>> 
>> Is this then a bug in Gfortran?
> It looks like it may be, yes.  It's hard to say for
> certain whether it is or not, without having a
> complete example (which would, in particular,
> include the declaration of str).
>
> Am I understanding correctly that this is a new
> error, and one that did not occur with older
> versions of gfortran?


I myself code in C, so my fortran knowledge is
limited. The error occurs with a package I have
to compile, which is in Fortran.

I don't think this error has occurred by updating
the GCC/Gfortran from SVN. This software package
has released an update and a minor change in this
particular file "xml.f" causes the error. The diff
between the old and new version is:

OLD:
  WRITE(uixml, '(A,"<i type=""string""
    name=""",A,""">",A,"</i>")',ADVANCE="Yes")
    blank(1:inden),tag,str(1:i)

NEW:
  WRITE(uixml, '(A,"<i type=",1H","string",1H","
    name=",1H",A,1H",">",A,"</i>")',ADVANCE="Yes")
    blank(1:inden),tag,str(1:i)


The OLD version compiles fine with the GFortran of
current SVN, but the NEW version causes the error.

You can have a look at the whole file here:
http://www.lahaye.dds.nl/gfortran/xml.f

(go to "SUBROUTINE XML_INCAR" and have a look at
first WRITE statement in the "SELECT CASE (FORM)"
code).

The 'str' variable is declared as follows:

   CHARACTER (LEN=*) :: STR


Is upper- and lowercase same in fortran?

I hope this helps resolve this problem.

Regards,
Rob.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Fortran mailing list