This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Maybe g++ bug (in stl_algo.h 0x08048beb in std::__unguarded_partition)
- From: "Chris Jefferson" <chris at bubblescope dot net>
- To: Niklaus <niklaus at gmail dot com>
- Cc: gcc <gcc-help at gcc dot gnu dot org>
- Date: Wed, 22 Oct 2008 22:41:28 +0100
- Subject: Re: Maybe g++ bug (in stl_algo.h 0x08048beb in std::__unguarded_partition)
- References: <85e0e3140810181122o3c9b1436k139803dc5bf6c9b4@mail.gmail.com>
2008/10/18 Niklaus <niklaus@gmail.com>:
> hi,
> This crashes on g++ 4.2.3. I think my code is correct. I'm not doing
> any out of bound errors but sort crashes.
>
> Same is present at http://rafb.net/p/nyMKCk70.html or
> http://pastebin.com/m67e4529b
>
> Why does this occur ?
While I'm not positive, your comparison function must satisfy the
condition cmp(a,a) is false for any a, and I don't think it does.
Chris