https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88810

            Bug ID: 88810
           Summary: gcc/fortran/dependency.c:2200: possible cut'n'paste
                    error ?
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

gcc/fortran/dependency.c:2200] -> [trunk/gcc/fortran/dependency.c:2205]:
(style) The if condition is the same as the previous if condition

Source code is

                  /* Set reverse if backward dependence and not inhibited.  */
                  if (reverse && reverse[m] == GFC_ENABLE_REVERSE)
                    reverse[m] = (this_dep == GFC_DEP_BACKWARD) ?
                                 GFC_REVERSE_SET : reverse[m];

                  /* Set forward if forward dependence and not inhibited.  */
                  if (reverse && reverse[m] == GFC_ENABLE_REVERSE)
                    reverse[m] = (this_dep == GFC_DEP_FORWARD) ?
                                 GFC_FORWARD_SET : reverse[m];

Comment and code on 2nd if don't match.

Reply via email to