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:56:12 -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:56 -------
> 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.
Sorry about that, actually is wrong. If we could really elide 21.1.3.1,p6, then,
as hinted by Martin (I think), lt() could always compare unsigned, irrespective
of builtin operator<(), and that would do the trick! Sorry again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15276