This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66742] abort on sorting list with custom compiler that is not stateless
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Jul 2015 19:40:06 +0000
- Subject: [Bug libstdc++/66742] abort on sorting list with custom compiler that is not stateless
- Auto-submitted: auto-generated
- References: <bug-66742-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66742
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
Your definition of operator!= for the allocator test_alloc violates the
allocator requirements, which impose that != behaves the same as the negation
of == (see Table 28 â Allocator requirements, [allocator.requirements]). This
violates causes undefined behaviour. Therefore it seems to me as if this is an
invalid bug report.