Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00140.html
* m4/std-gnu23.m4 (_AC_C_C23_TEST_GLOBALS): Add parens.
While we’re at it, use sizeof so that the expression is a
conforming integer constant expression.
+2024-11-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ std-gnu23: pacify GCC 15
+ Problem reported by Bruno Haible in:
+ https://lists.gnu.org/r/bug-gnulib/2024-11/msg00140.html
+ * m4/std-gnu23.m4 (_AC_C_C23_TEST_GLOBALS): Add parens.
+ While we’re at it, use sizeof so that the expression is a
+ conforming integer constant expression.
+
2024-11-16 Bruno Haible <bruno@clisp.org>
calloc-gnu: Fix bug on 32-bit AIX (regression 2024-11-04).
# std-gnu23.m4
-# serial 2
+# serial 3
# Prefer GNU C23 to earlier versions.
void c23_noreturn ();
-bool use_u8 = !u8"\xFF" == u8'\''x'\'';
+/* Test parsing of string and char UTF-8 literals (including hex escapes).
+ The parens pacify GCC 15. */
+bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
bool check_that_bool_works = true | false | !nullptr;
#if !true