+2024-08-05 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error in C++ mode with clang >= 16 (regr. 2024-07-29).
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Define
+ _GL_BRACKET_BEFORE_ATTRIBUTE with clang++ 16 or newer.
+
2024-08-05 Bernhard Voelker <mail@bernhard-voelker.de>
dfa-tests: Detect test-dfa-match-aux error.
# gnulib-common.m4
-# serial 99
+# serial 100
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
This gives a syntax error
- in C mode with gcc, and
- in C++ mode with clang++ version < 16.
+ - in C++ mode, inside extern "C" {}, still in newer clang++ versions
+ <https://github.com/llvm/llvm-project/issues/101990>.
*/
/* Define if, in a function declaration, the attributes in bracket syntax
[[...]] must come before the attributes in __attribute__((...)) syntax.
various _GL_ATTRIBUTE_* can be cumulated on the same declaration in any
order. */
#ifdef __cplusplus
-# if defined __clang__ && __clang_major__ < 16
+# if defined __clang__
# define _GL_BRACKET_BEFORE_ATTRIBUTE 1
# endif
#else