This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15276] Erroneous Comparisons of Negative Characters
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2004 18:42:26 -0000
- Subject: [Bug libstdc++/15276] Erroneous Comparisons of Negative Characters
- References: <20040504045136.15276.mckelvey@maskull.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-05-05 18:42 -------
> The standard clearly says that lt() should match operator<(). I can
> see what Paolo wants, but that is different from what is specified.
Indeed, *many* messages ago, I replied the first to submitter writing that
perhaps the standard should be ""improved"".
> I think any reasoning based on a ghost consistency with C string
> is just going to make the issue messier and more confused.
About this, we slightly disagree: f.i., I don't think that eliding 21.1.3.1,p6
would be such a big win. Having to renounce to the support of well optimized
memcmp and wmemcmp it's not a little thing... Also, basic_string heavily
*interacts* with char arrays and C strings, always, and I don't think doing
the comparisons two different ways is a big win.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276