Skip to content

Commit b37d2cb

Browse files
committed
[libcxx] Mark system_reserved_names.gen.py unsupported on clang-20 && msvc
Clang 20 (and early 21 versions; let's hope it can be fixed before the later versions before such versions become relevant for libcxx CI) have got an issue with its intrinsics headers, where they use unreserved names, that users are allowed to override. See llvm#161808 for the issue report. This only crops up in the MSVC build configurations, as recent versions of some MSVC/UCRT headers include `<intrin.h>`, which ends up pulling in most intrinsics headers, exposing this issue in the Clang headers. This should unblock llvm#161736 from being merged.
1 parent f4370fb commit b37d2cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcxx/test/libcxx/system_reserved_names.gen.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
# alphabetic macros. Also ensure that we don't swallow the definition of user
1111
# provided macros (in other words, ensure that we push/pop correctly everywhere).
1212

13+
# This test fails with MSVC headers, with Clang 20 (and early 21 versions);
14+
# the headers end up pulling in Clang intrinsics headers, which in 20.x and
15+
# early 21.x versions use unreserved identifiers,
16+
# see https://github.com/llvm/llvm-project/issues/161808.
17+
#
18+
# UNSUPPORTED: clang-20 && msvc
19+
1320
# RUN: %{python} %s %{libcxx-dir}/utils
1421
# END.
1522

0 commit comments

Comments
 (0)