Commit 68c9b7d6 by Jerry DeLisle

re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string)

2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26554
	* gfortran.dg/read_logical.f90: New test.

From-SVN: r111739
parent 03e957f8
2006-03-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26554
* gfortran.dg/read_logical.f90: New test.
2006-03-04 Laurent GUERBY <laurent@guerby.net>
* ada/acats/norun.lst: cdd2a03 now passes.
! { dg-do run }
! PR 26554 : Test logical read from string. Test case derived from PR.
! Submitted by Jerry DeLisle <jvdelisle@verizon.net>.
program bug
implicit none
character*30 :: strg
logical l
l = .true.
strg = "false"
read (strg,*) l
if (l) call abort()
strg = "true"
read (strg,*) l
if (.not.l) call abort()
end
\ No newline at end of file
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