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 fortran/71891] New: fortran/symbol.c:4864: suspicious if ?


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

            Bug ID: 71891
           Summary: fortran/symbol.c:4864: suspicious if ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I did a fortran build and used the flag -Wlogical-op. It said

../../src/trunk/gcc/fortran/symbol.c:4864:50: warning: logical ‘and’ of equal
expressions [-Wlogical-op]
   if ((is_derived1 && is_derived2) || (is_union1 && is_union1))
                                        ~~~~~~~~~~^~~~~~~~~~~~
I am guessing this should be

   if ((is_derived1 && is_derived2) || (is_union1 && is_union2))

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