public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22527] New: fortran produces mismatch types in comparision with integer to logic assignment
@ 2005-07-17 17:49 pinskia at gcc dot gnu dot org
  2005-08-06 15:08 ` [Bug fortran/22527] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 17:49 UTC (permalink / raw)
  To: gcc-bugs

The following code:
c { dg-do compile }
c { dg-options "-O2 -std=legacy" }
       LOGICAL*1 l1
       INTEGER*1 i1
       l1 = i1
       END
 
produces mismatch types in comparision.
See PR 22368 for the patch which catches this.
logint-1.f: In function 'MAIN__':
logint-1.f:5: error: types mismatch in comparsion
int1D.0
int4D.2
i1D.464 != 0;

-- 
           Summary: fortran produces mismatch types in comparision with
                    integer to logic assignment
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,sayle at gcc dot gnu dot
                    org
OtherBugsDependingO 22368
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22527


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/22527] fortran produces mismatch types in comparision with integer to logic assignment
  2005-07-17 17:49 [Bug fortran/22527] New: fortran produces mismatch types in comparision with integer to logic assignment pinskia at gcc dot gnu dot org
@ 2005-08-06 15:08 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-06 15:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-06 15:08 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-06 15:08:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22527


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/22527] fortran produces mismatch types in comparision with integer to logic assignment
       [not found] <bug-22527-6528@http.gcc.gnu.org/bugzilla/>
  2005-12-10  1:14 ` sayle at gcc dot gnu dot org
@ 2005-12-10  5:17 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-10  5:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-12-10 05:17 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22527


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/22527] fortran produces mismatch types in comparision with integer to logic assignment
       [not found] <bug-22527-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-12-10  1:14 ` sayle at gcc dot gnu dot org
  2005-12-10  5:17 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: sayle at gcc dot gnu dot org @ 2005-12-10  1:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sayle at gcc dot gnu dot org  2005-12-10 01:14 -------
Subject: Bug 22527

Author: sayle
Date: Sat Dec 10 01:14:38 2005
New Revision: 108341

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108341
Log:

        PR fortran/22527
        * f95-lang.c (gfc_truthvalue_conversion): Use a zero of the correct
        integer type when building an inequality.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/f95-lang.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22527


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-10  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-17 17:49 [Bug fortran/22527] New: fortran produces mismatch types in comparision with integer to logic assignment pinskia at gcc dot gnu dot org
2005-08-06 15:08 ` [Bug fortran/22527] " pinskia at gcc dot gnu dot org
     [not found] <bug-22527-6528@http.gcc.gnu.org/bugzilla/>
2005-12-10  1:14 ` sayle at gcc dot gnu dot org
2005-12-10  5:17 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).