[Bug c/60759] -Wlogical-op should perhaps warn about two-way implicit conversions

2014-04-07 Thread giuliano.procida at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60759 --- Comment #3 from Giuliano Procida --- I believe the clang warning is: foo.c:1:18: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] static int x = 2 || 3; ^ ~ foo.c:1:18: note: use '|' for a bit

[Bug c/60759] New: -Wlogical-op should perhaps warn about two-way implicit conversions

2014-04-04 Thread giuliano.procida at googlemail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: giuliano.procida at googlemail dot com Expressions of the form "a && b" or "a || b" that involve both implicit bool->integer and implicit integer->b