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

Brooks Moses bmoses@stanford.edu
Fri May 4 06:11:00 GMT 2007


On Thu, May 03, 2007 at 10:57:54PM -0700, Rob wrote:
> I have updated GCC/gfortran from svn a few days ago,
> and I now get following error with fortran code:
> 
> $ /opt/gcc/bin/gfortran -ffree-form -mfp-trap-mode=su
> \
>       -fconvert=little-endian -frecord-marker=8 \
>       -O3  -c xml.f
>  In file xml.f:720
> 
> ,str(
>     1
> Error: Syntax error in argument list at (1)
> 
> 
> The code snippet looks like this:
> 
>         SELECT CASE (FORM)
>            CASE ("S")
>               i=LEN_TRIM(str)
>               WRITE(uixml, \
>     '(A,"<i type=",1H","string",1H"," \
>     name=",1H",A,1H",">",A,"</i>")',ADVANCE="Yes") \
>     blank(1:inden),tag,str(1:i)
> 
> (I've added the "\" here to indicate that the lines
> continue; of course those are not in the fortran
> file, where this is just one long line).
[...]
> 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?

- Brooks



More information about the Fortran mailing list