From: Denis Zaitsev <zzz@anda.ru>
To: gcc@gcc.gnu.org, linux-gcc@vger.kernel.org
Subject: GCC 3.3.2: Some bug in the preprocessor?
Date: Fri, 13 Feb 2004 01:29:58 +0500 [thread overview]
Message-ID: <20040213012958.A14323@zzz.ward.six> (raw)
Look, this defun returns 0, and this is correct:
tst()
{
#if (unsigned)0 > -1
return 1;
#else
return 0;
#endif
}
But this one returns 1, and this is incorrect:
tst()
{
#if 0 > (unsigned)-1
return 1;
#else
return 0;
#endif
}
What's wrong?
next reply other threads:[~2004-02-12 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-12 20:29 Denis Zaitsev [this message]
2004-02-12 20:34 ` GCC 3.3.2: Some bug in the preprocessor? Zack Weinberg
2004-02-12 20:44 ` Denis Zaitsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040213012958.A14323@zzz.ward.six \
--to=zzz@anda.ru \
--cc=gcc@gcc.gnu.org \
--cc=linux-gcc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).