------- Comment #3 from redi at gcc dot gnu dot org 2010-08-20 15:36 ------- Yes, "if (b = 2)" is valid and -Wparentheses warns about that.
(In reply to comment #0) > It would be nice if future version could at least throw a warning. Obviously it can't be anything *more* than a warning. N.B. at least in C++ there are valid reasons to use the + operator, such as turning an lvalue into an rvalue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45358