This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47729] New: Failure to receive warning message when comparing signed and unsigned integers
- From: "samuelmarks at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Feb 2011 09:29:51 +0000
- Subject: [Bug c++/47729] New: Failure to receive warning message when comparing signed and unsigned integers
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47729
Summary: Failure to receive warning message when comparing
signed and unsigned integers
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: samuelmarks@gmail.com
Created attachment 23333
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23333
Commented test-case with example prominently shown
Unfortunately I don't receive warning message when comparing signed and
unsigned integers within a function.
When comparing with >, >=, < or <=, it gives me a warning message.
Only when comparing with != inside a function does the warning message not
appear.
Please fix this bug.
Thank you,
Samuel Marks