This is the mail archive of the gcc-bugs@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]

[Bug optimization/14019] New: fortran if statement with .and. causes optimizer to produce wrong code


A short fortran program compiled and loaded with g77 causes the following
problem:  an if statement within a do-loop that contains two logical expressions
separated by .and. causes the code above the if statement, and inside the loop,
to not be executed (i.e. it is skipped over).  This only occurs when invoking
g77 with any level of optimization.

-- 
           Summary: fortran if statement with .and. causes optimizer to
                    produce wrong code
           Product: gcc
           Version: 2.96 (redhat)
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mmrashid at ucdavis dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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