From: fj on
On 3 déc, 08:28, Thomas Koenig <tkoe...(a)netcologne.de> wrote:
> Thanks for the explanations!
>
> I've opened a bug report for gfortran, maybe
> somebody could do the same with ifort.

With g95 , I obtain :

abb

Three different results with three compilers :-)

But the same three compilers give the expected answer with the
variant :

program main
open(99,form="formatted")
write (99,'(A)',advance="no") 'a'
write (99,'(A)',advance="no") 'b'
close (99)
end program main

G95 (GCC 4.0.3 (g95 0.91!) Apr 12 2007)
ifort (IFORT) 10.0 20070426
GNU Fortran (GCC) 4.3.0 20071123 (experimental) [trunk revision
130366]

So the problem seems related to access="stream" which is not
understood by my ifort version :

[lcoul(a)b04p0004 test]$ ifort test4.f90; a.out; more fort.99
fortcom: Error: test4.f90, line 2: Not a valid value for the char-expr
in this connect-spec. ['stream']
open(99,form="formatted",access="stream")
----------------------------------^
From: Steve Lionel on
On Dec 3, 2:46 pm, fj <francois.j...(a)irsn.fr> wrote:

> So the problem seems related to access="stream" which is not
> understood by my ifort version :

Stream I/O is a new feature in version 10.1. I will report this
problem (and another one I found along the way) to the developers.

Steve