Re: Why is (2 < 2) true? Is it a gcc bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/17/2014 08:55 AM, Dorau, Lukasz wrote:

On Friday, January 17, 2014 2:58 PM Richard Weinberger <richard.weinberger@xxxxxxxxx> wrote:
Can you reproduce this using a standalone test?
I.e:
#include <assert.h>

int main()
{
         assert(2 < 2 != 1);

         return 0;
}

No, I can't of course.

The test might need to be more complex in order to prevent the compiler from optimizing away the issue. Or, you could try -O0.

------------------------------------------------------------------------

 Steven J. Magnani               "I claim this network for MARS!

 www.digidescorp.com              Earthling, return my space modulator!"

 #include <standard.disclaimer>

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux