Skip to content

Containers should diagnose swapping with non-POCS non-equal allocators #30698

@llvmbot

Description

@llvmbot
Bugzilla Link 31350
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @mclow

Extended Description

r289358 fixed a bunch of undefined behavior in the container swap tests where we were swapping non-equal non-POCS allocators. Instead of accepting these cases like we previously had we should add _LIBCPP_DEBUG checks to assert when they occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillahardeningIssues related to the hardening effortlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions