Skip to content

libcxx 15.0.1 fails tests when using clang-16  #57845

@mgorny

Description

@mgorny

When building libcxx 15.0.1 using clang-16, there's a lot of warnings like:

[564/565] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
In file included from /home/mgorny/git/llvm-project/libcxx/src/locale.cpp:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/algorithm:1709:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__debug:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/type_traits:421:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__functional/invoke.h:17:
/home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__type_traits/decay.h:30:8: warning: keyword '__decay' will be made available as an identifier for the remainder of the translation unit [-Wkeyword-compat]
struct __decay {
       ^
In file included from /home/mgorny/git/llvm-project/libcxx/src/locale.cpp:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/algorithm:1709:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__debug:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/type_traits:511:
/home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__type_traits/make_signed.h:42:8: warning: keyword '__make_signed' will be made available as an identifier for the remainder of the translation unit [-Wkeyword-compat]
struct __make_signed {};
       ^
In file included from /home/mgorny/git/llvm-project/libcxx/src/locale.cpp:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/algorithm:1709:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__debug:16:
In file included from /home/mgorny/git/llvm-project/build-cxx/include/c++/v1/type_traits:512:
/home/mgorny/git/llvm-project/build-cxx/include/c++/v1/__type_traits/make_unsigned.h:44:8: warning: keyword '__make_unsigned' will be made available as an identifier for the remainder of the translation unit [-Wkeyword-compat]
struct __make_unsigned {};
       ^
3 warnings generated.

Since tests use -Werror this causes them to fail.

Metadata

Metadata

Assignees

Labels

invalidResolved as invalid, i.e. not a buglibc++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