This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47729] New: Failure to receive warning message when comparing signed and unsigned integers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]