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

            Bug ID: 104948
           Summary: When '&&' present in a comparison, a warning should be
                    generated
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: coenraad at wish dot org.za
  Target Milestone: ---

The sheer number of issues reported here that wrongly use '&&' as a logical
AND, warrants that this warning is direly necessary.

Even worse, the presence of '&&' in an evaluation, causes that branch to be
optimized out, completely, no matter what optimization level is used.

The reason for so many people using '&&' as logical AND, is because that is
what it is in almost every other language in widespread use.

Reply via email to