+2022-09-14 Bruno Haible <bruno@clisp.org>
+
+ verify: Avoid syntax error due to static_assert with clang in C++ mode.
+ * lib/verify.h (static_assert): Don't define in clang C++ 6 or newer.
+
2022-09-14 Bruno Haible <bruno@clisp.org>
verify: Avoid syntax error due to static_assert with MSVC 14 in C++.
# define _Static_assert(R, ...) \
_GL_VERIFY ((R), "static assertion failed", -)
# endif
-# if __cpp_static_assert < 201411 && __GNUG__ < 6 && !defined static_assert
+# if (!defined static_assert \
+ && (!defined __cplusplus \
+ || (__cpp_static_assert < 201411 \
+ && __GNUG__ < 6 && __clang_major__ < 6)))
# if defined __cplusplus && _MSC_VER >= 1900 && !defined __clang__
/* MSVC 14 in C++ mode supports the two-arguments static_assert but not
the one-argument static_assert, and it does not support _Static_assert.