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.