------- Comment #2 from jvdelisle at gcc dot gnu dot org  2007-06-06 03:15 
-------
The following output from both gfortran and Intel are identical and correct:

$ gfc pr32228.f90 
$ ./a.out
     onetwo&
     three
     onetwo
$ ifort pr32228.f90 
$ ./a.out
     onetwo&
     three
     onetwo

This is with gfortran 4.3. 

   10.6.3   Colon editing

The colon edit descriptor terminates format control if there are no more
effective items in the input/output list (9.4.2). The colon edit descriptor has
no effect if there are more effective items in the input/output list.

So this is not a bug on 4.2 and 4.3.  I think it would be best to upgrade if
possible to 4.2 or 4.3


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Formatted output error with |[4.1 Only] Formatted output
                   |colon (:) descriptor        |error with colon (:)
                   |                            |descriptor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32228

Reply via email to