[PATCH,fortran] Fix logical comparison diagnostic message

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Jul 26 17:34:00 GMT 2007


On Thu, Jul 26, 2007 at 07:11:03PM +0200, Daniel Franke wrote:
> On Thursday 26 July 2007 19:00:57 Steve Kargl wrote:
> > This probably qualifies as "obviously correct", but it someone
> > would cast an eye of the patch I'd appreciate it.
> 
> as the one who caused this regression, I think it looks ok.
> 
> One note: there is logical_comp.f90 in the testsuite which already includes 
> these tests.
> 

logical_comp.f90 has been passing since it was committed.

program foo
  logical :: b
  b = b .eq. b  ! { dg-error ".eqv. instead of .eq." }
  b = b .ne. b  ! { dg-error ".neqv. instead of .ne." }
end program

I wonder if the dot in the strings are being matched as
regular expressions because the "b = b .eq. b" case 
prints ".neqv. instead of .eq." without the patch.  I'll
update the dg-error strings, retest, and commit.

-- 
Steve



More information about the Fortran mailing list