This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::collate hash() still broken
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: AWLaFramboise at aol dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sun, 10 Feb 2002 12:38:04 +0100
- Subject: Re: std::collate hash() still broken
- References: <158.8adf458.2997b361@aol.com>
AWLaFramboise@aol.com wrote:
> hi
>
> i noticed in gcc3.0.3 std::collate hash() was broken, so i checked cvs. the obvious bug had been fixed, but still leaving a more subtle one. its a rotary hash.. it should be doing a full rotate instead of a fonky kindof rotate like it is now. the thing it has right now will not work correctly. try comparing hashes of "xxxx" to "xxxxxxxx" or something.. they're identical.
Probably you are right, but I have trouble reproducing the problem you are mentioning.
paolo:~> a.out
String: xxxx
Hash: 0xf1e3c78
paolo:~> a.out
String: xxxxxxxx
Hash: 0x8f1e7cf9
Could you possibly explain it in some more detail?
Thanks,
Paolo.