glandium added a comment. Repro:
$ echo '#include "cpuid.h"' | ./clang/bin/clang-cl -Tp - clang-cl: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found] In file included from <stdin>:1: /tmp/ct/clang/lib/clang/17/include/cpuid.h(331,22): error: definition of builtin function '__cpuidex' static __inline void __cpuidex (int __cpu_info[4], int __leaf, int __subleaf) ^ 1 error generated. (interestingly doesn't happen in C mode (with `-Tc` instead of `-Tp`)) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150646/new/ https://reviews.llvm.org/D150646 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits