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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |DUPLICATE

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 29280.
The warning needs some fine tuning on the wording but the parentheses is not
there. The syntax for, while and if requires parentheses for the truth value. 
That is it is not:
```
if a = b
{
}
```

But:
```
if (a = b)
{
}
```
the assignment in this case is used where a truth value would be used, there is
no parentheses around the assignment.

*** This bug has been marked as a duplicate of bug 29280 ***

Reply via email to