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 libstdc++/15276] Erroneous Comparisons of Negative Characters


------- Additional Comments From sebor at roguewave dot com  2004-05-05 17:52 -------
Subject: Re:  Erroneous Comparisons of Negative Characters

pcarlini at suse dot de wrote:

> ------- Additional Comments From pcarlini at suse dot de  2004-05-05 17:39 -------
> 
>>Maybe it's lt() that needs to be fixed to behave like memcmp(), not
>>compare() to behave like lt(). AFAICS, the standard does not require
>>that lt() return the same value as operator<().
> 
> 
> Hi Martin! Unfortunately it does (noticed yesterday)! See 21.1.3.1, p6.
> 

Yep, you're right. I missed it. What a mess!

Martin




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276


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