Commit 92efdb07 by Jerry DeLisle

re PR libfortran/30200 ([4.1 only] write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz)

2006-12-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/30200
	* gfortran.dg/write_fmt_trim.f90: New test.

From-SVN: r119941
parent 9341698a
2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/30200
* gfortran.dg/write_fmt_trim.f90: New test.
2006-12-14 Diego Novillo <dnovillo@redhat.com>
PR 30194
! { dg-do run }
! PR30200 write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz
! Test case from PR, submitted by <jvdelisle@gcc.gnu.org>
program main
character (len=20) format
format = "(1X,a,'xyz')"
write(*,fmt=trim(format)) "A" ! Problem arose when trim was included here
end
! { dg-output " Axyz" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment