This is about both C and C++.

gcc warns about a construction like i&2==0, and this helped us find bugs. But
we noticed, in the same code, occurrences of: i&=2==0. This code suffers from
the same problem, but gcc doesn't warn about it. Would it be a good idea to
extend the warning to this case?


-- 
           Summary: extend Wparentheses from & to &=
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marc dot glisse at normalesup dot org


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

Reply via email to