public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25733]  New: missed diagnostic about assignment used as truth value.
@ 2006-01-10  9:00 pluto at agmk dot net
  2006-01-10 10:17 ` [Bug c/25733] " rguenth at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-01-10  9:00 UTC (permalink / raw)
  To: gcc-bugs

int foo(int a, int b)
{
    return ((a = b) ? 1 : 0);  // <= missed warning.
}
int bar(int a, int b)
{
    if (a = b)                 // warning present.
        return 1;
    else
        return 0;
}


-- 
           Summary: missed diagnostic about assignment used as truth value.
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: i686-pld-linux
  GCC host triplet: i686-pld-linux
GCC target triplet: i686-pld-linux


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



^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-25733-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-01-19 13:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10  9:00 [Bug c/25733] New: missed diagnostic about assignment used as truth value pluto at agmk dot net
2006-01-10 10:17 ` [Bug c/25733] " rguenth at gcc dot gnu dot org
2008-04-27 22:14 ` manu at gcc dot gnu dot org
2008-04-28 22:15 ` ianw at vmware dot com
2008-04-28 22:16 ` ianw at vmware dot com
2008-04-28 22:18 ` pinskia at gcc dot gnu dot org
2008-04-28 22:28 ` ianw at vmware dot com
2010-02-21  0:30 ` manu at gcc dot gnu dot org
2010-02-21  0:33 ` manu at gcc dot gnu dot org
2010-02-21  0:34 ` manu at gcc dot gnu dot org
2010-02-21  1:25 ` bangerth at gmail dot com
2010-02-21  1:44 ` manu at gcc dot gnu dot org
     [not found] <bug-25733-4@http.gcc.gnu.org/bugzilla/>
2012-01-19 14:00 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).