This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25733] missed diagnostic about assignment used as truth value.
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2010 00:34:06 -0000
- Subject: [Bug c/25733] missed diagnostic about assignment used as truth value.
- References: <bug-25733-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from manu at gcc dot gnu dot org 2010-02-21 00:34 -------
Another testcase:
int bar(int a, int b, int c)
{
if ((b = c) && (a == 0))
{
return 0;
}
return 1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25733