* lib/verify.h (_GL_VERIFY):
* m4/assert_h.m4 (gl_ASSERT_H):
If we check __cpp_static_assert < 200410, also check __GNUG__ < 6,
for consistency with the previous change.
+2022-09-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ verify: treat GNU C++ 6 like recent C++
+ * m4/assert_h.m4 (gl_ASSERT_H):
+ If we check __cpp_static_assert < 201411, also check __GNUG__ < 6,
+ for consistency with the previous change.
+
2022-09-13 Bruno Haible <bruno@clisp.org>
verify: Avoid syntax error due to static_assert with GNU C++ 6.x.
dnl including assert.h. Break the #undef apart with a comment
dnl so that 'configure' does not comment it out.
AH_VERBATIM([zzstatic_assert],
-[#if !defined HAVE_C_STATIC_ASSERT && __cpp_static_assert < 201411
+[#if (!defined HAVE_C_STATIC_ASSERT \
+ && __cpp_static_assert < 201411 && __GNUG__ < 6)
#include <assert.h>
#undef/**/assert
#endif])