[Bug tree-optimization/22375] New: DOM (or fold_builtins) creates mis-matched types

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jul 8 16:19:00 GMT 2005


Take the following fortran code:
! { dg-do run }
! Option passed to avoid excess errors from obsolete warning
! { dg-options "-w" }
! PR18827
      integer i,j
      common /foo/ i,j
      assign 1000 to j
      j = 5
      goto j
 1000 continue
      end

We get errors as __builtin_expect is foldded to 0 but someone forgot to cast the constant:
assign_2.f90:7: error: statement types mismatch
D.472_9 = 0;

<unnamed type>
logical4D.6

Patch in PR 22368 is used to find this.

-- 
           Summary: DOM (or fold_builtins) creates mis-matched types
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        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
OtherBugsDependingO 22368
             nThis:


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



More information about the Gcc-bugs mailing list