Skip to content

std-test fails on clang-cl + libc++ #4542

Description

@FatihBAKIR
test/std-test.cc(333): error: Value of: fmt::format("{:t}", ex)
Expected: starts with "std::system_error: "
  Actual: "std::__1::system_error: message"
test/std-test.cc(343): error: Value of: fmt::format("{:t}", ex)
Expected: starts with "std::filesystem::filesystem_error: "
  Actual: "std::__1::__fs::filesystem::filesystem_error: filesystem error: message"

This happens when building with libc++ instead of the microsoft standard library for windows using clang-cl. The demangling of the type name when FMT_HAS_ABI_CXA_DEMANGLE is not defined (which is the case when building for MSVC targets) does not consider the inline namespaces, and the test fails.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions