public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44362]  New: Bogus set-but-not-used warning
@ 2010-06-01 12:35 rguenth at gcc dot gnu dot org
  2010-06-01 13:58 ` [Bug c++/44362] " jakub at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-01 12:35 UTC (permalink / raw)
  To: gcc-bugs

#define WORDS_BIG_ENDIAN 0
int foo(int x, int y)
{
  int a = x;
  int b = y;
  int j = WORDS_BIG_ENDIAN ? a : b;
  return j;
}

which actually breaks bootstrap with C++.


-- 
           Summary: Bogus set-but-not-used warning
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-04 18:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-01 12:35 [Bug c++/44362] New: Bogus set-but-not-used warning rguenth at gcc dot gnu dot org
2010-06-01 13:58 ` [Bug c++/44362] " jakub at gcc dot gnu dot org
2010-06-03 18:01 ` rguenth at gcc dot gnu dot org
2010-06-04  0:17 ` paolo dot carlini at oracle dot com
2010-06-04  0:25 ` amylaar at gcc dot gnu dot org
2010-06-04  0:28 ` paolo dot carlini at oracle dot com
2010-06-04  0:46 ` amylaar at gcc dot gnu dot org
2010-06-04 18:43 ` jakub at gcc dot gnu dot 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).