------- Comment #3 from burnus at gcc dot gnu dot org 2007-04-12 19:00 ------- Which version are you using under i386-pc-mingw32? (I see "Reported against 4.3.0, however - see below.)
I'm asking because "4.0.3 (intel linux 64bit)" is very old. GCC 4.0.x contained the freshly added and still a bit buggy gfortran. One should use version 4.1.x, which is much more stable, or the 4.2.0 or 4.3.0 which contain even fewer Fortran bugs. Binaries are available from: http://gcc.gnu.org/wiki/GFortranBinaries Using gfortran 4.1.3 20070302 (prerelease) gfortran 4.2.0 20070412 (prerelease) gfortran 4.3.0 20070412 (experimental) I get the same result as with NAG f95, sunf95 and Intel ifort: ( 4(a,' | ')) 1234 | 12345678 | 1234567890123456 | 12345678901234567890 | 1234 | 12345678 | 1234567890123456 | 12345678901234567890 | 1234 | 12345678 | 1234567890123456 | 12345678901234567890 | 1234 | 12345678 | 1234567890123456 | 12345678901234567890 | -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31553