Skip to content

Tests fail to build with libc++ 19 and above #2367

Open
@sin-ack

Description

@sin-ack

The following code fails to build:

testRandom<std::basic_string<signed char>>();

Because libc++ removed its deprecated std::char_traits base template as of version 19: https://releases.llvm.org/19.1.0/projects/libcxx/docs/ReleaseNotes.html#deprecations-and-removals

The base template for std::char_traits has been removed in LLVM 19. If you are using std::char_traits with types other than char, wchar_t, char8_t, char16_t, char32_t or a custom character type for which you specialized std::char_traits, your code will stop working. The Standard does not mandate that a base template is provided, and such a base template is bound to be incorrect for some types, which could currently cause unexpected behavior while going undetected.

System information

OS: Gentoo Linux amd64 (x86_64-pc-linux-gnu)
Compiler: clang version 19.1.4+libcxx
C++ stdlib implementation: libc++
Folly version: 2025.01.06.00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions