This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,fortran] Fix logical comparison diagnostic message


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]