[cfe-commits] Correction to equality comparisons
Douglas Gregor
dgregor at apple.com
Mon Jul 6 13:15:06 PDT 2009
On Jul 2, 2009, at 11:18 AM, David Majnemer wrote:
> You are correct, this should stay. The attached patch should address
> this.
Looks good. Committed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090706/018779.html
- Doug
> On Wed, Jul 1, 2009 at 6:22 PM, Eli Friedman<eli.friedman at gmail.com>
> wrote:
>> On Wed, Jul 1, 2009 at 3:21 PM, David Majnemer<david.majnemer at gmail.com
>> > wrote:
>>> I misread the rules in 6.5.9 which caused false diagnostic messages.
>>> The attached patch should correct this issue and also includes
>>> updated
>>> test cases.
>>
>> @@ -27,5 +29,10 @@
>> return a > b; // expected-warning {{ordered comparison of
>> function pointers}}
>> return function_pointers > function_pointers; // expected-warning
>> {{ordered comparison of function pointers}}
>> return a == (void *) 0;
>> - return a == (void *) 1; // expected-warning {{comparison of
>> distinct pointer types}}
>> + return a == (void *) 1;
>>
>> This warning was correct the way it was.
>>
>> -Eli
>>
> <fixed_bug_4175.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list