diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -194,6 +194,8 @@ move assignment operator. Fixes `Issue 56456 `_. - Fixed a crash when a variable with a bool enum type that has no definition used in comparison operators. Fixes `Issue 56560 `_. +- 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 --- 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