[libcxx-commits] [libcxx] 5d3b3ea - [libcxx] Mark system_reserved_names.gen.py unsupported on clang-20 && msvc (#161811)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 3 07:45:18 PDT 2025


Author: Martin Storsjö
Date: 2025-10-03T17:45:14+03:00
New Revision: 5d3b3eaaa02b52dcf4a0a4ed409c683972377c96

URL: https://github.com/llvm/llvm-project/commit/5d3b3eaaa02b52dcf4a0a4ed409c683972377c96
DIFF: https://github.com/llvm/llvm-project/commit/5d3b3eaaa02b52dcf4a0a4ed409c683972377c96.diff

LOG: [libcxx] Mark system_reserved_names.gen.py unsupported on clang-20 && msvc (#161811)

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 https://github.com/llvm/llvm-project/issues/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 https://github.com/llvm/llvm-project/pull/161736
from being merged.

Added: 
    

Modified: 
    libcxx/test/libcxx/system_reserved_names.gen.py

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/system_reserved_names.gen.py b/libcxx/test/libcxx/system_reserved_names.gen.py
index f8589f2beaae3..d69182d68e0de 100644
--- a/libcxx/test/libcxx/system_reserved_names.gen.py
+++ b/libcxx/test/libcxx/system_reserved_names.gen.py
@@ -10,6 +10,13 @@
 # alphabetic macros. Also ensure that we don't swallow the definition of user
 # provided macros (in other words, ensure that we push/pop correctly everywhere).
 
+# This test fails with MSVC headers, with Clang 20 (and early 21 versions);
+# the headers end up pulling in Clang intrinsics headers, which in 20.x and
+# early 21.x versions use unreserved identifiers,
+# see https://github.com/llvm/llvm-project/issues/161808.
+#
+# UNSUPPORTED: clang-20 && msvc
+
 # RUN: %{python} %s %{libcxx-dir}/utils
 # END.
 


        


More information about the libcxx-commits mailing list