[Bug c/17946] New: wanted: warning for "a && MASK" when "a & MASK" was probably intended

trt at acm dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 12 14:15:00 GMT 2004


People sometimes code "a && MASK" when they intended "a & MASK".
It would be good if gcc issued a warning for suspect cases.

-- 
           Summary: wanted: warning for "a && MASK" when "a & MASK" was
                    probably intended
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trt at acm dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list