------- Comment #4 from tkoenig at gcc dot gnu dot org 2006-12-13 21:12 ------- (In reply to comment #3) > CC: some more libgfortran/io experienced persons. > > There seems to go something wrong when one uses > format = "(1X,a,'xyz')" > write(*,fmt=trim(format)) "A" > The result is: > Az'
WORKSFORME: $ cat foo.f90 program main character (len=20) format format = "(1X,a,'xyz')" write(*,fmt=trim(format)) "A" end $ gfortran foo.f90 $ ./a.out Axyz $ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../../gcc/trunk/configure --prefix=/home/ig25 --enable-languages=c,fortran Thread model: posix gcc version 4.3.0 20061127 (experimental) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30200