This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[gfortran] Fix PR 19589


The attached patch fixes PR 19589.  The program

      PROGRAM PR19589
      LOGICAL*1 L
      DATA  L /.TRUE./
      END

used to give the error
troutmask:sgk[212] gfc -o d d.f
Numeric success
 In file d.f:4

      DATA  L /.TRUE./                                                  
                    1
Error: Incompatible types in assignment at (1), LOGICAL(4) to LOGICAL(1)

while g77 compiles the above.

2005-01-26  Steven G. Kargl  <kargls@comcast.net>

       * expr.c (gfc_check_assign):  Check for conformance of logical operands

I've attached a testsuite program as well.

-- 
Steve

Attachment: pr19589.f
Description: Text document

Attachment: expr.c.diff
Description: Text document


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