diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 317fd250b19333..ab2f6387492b79 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -196,6 +196,8 @@ Bug Fixes used in comparison operators. Fixes `Issue 56560 `_. - Fix that ``if consteval`` could evaluate to ``true`` at runtime because it was incorrectly constant folded. Fixes `Issue 55638 `_. +- Fixed incompatibility of Clang's ```` with MSVC ````. + Fixes `MSVC STL Issue 2862 `_. Improvements to Clang's diagnostics ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/clang/lib/Headers/stdatomic.h b/clang/lib/Headers/stdatomic.h index 3a0b9cc056bef0..318c7ca56e418b 100644 --- a/clang/lib/Headers/stdatomic.h +++ b/clang/lib/Headers/stdatomic.h @@ -17,7 +17,8 @@ * explicitly disallows `stdatomic.h` in the C mode via an `#error`. Fallback * to the clang resource header until that is fully supported. */ -#if __STDC_HOSTED__ && __has_include_next() && !defined(_MSC_VER) +#if __STDC_HOSTED__ && \ + __has_include_next() && !(defined(_MSC_VER) && !defined(__cplusplus)) # include_next #else