[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An update for clang >= 16
From: |
Bruno Haible |
Subject: |
Re: An update for clang >= 16 |
Date: |
Tue, 06 Aug 2024 01:53:26 +0200 |
Sam James wrote:
> See https://gcc.gnu.org/PR108796 too.
Thanks.
2024-08-05 Bruno Haible <bruno@clisp.org>
Improve a comment.
With info from Sam James <sam@gentoo.org>.
* m4/gnulib-common.m4 (gl_COMMON_BODY): Reference the gcc bug that is
the reason for _GL_BRACKET_BEFORE_ATTRIBUTE.
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index b208dc1266..b1b3758db8 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,5 +1,5 @@
# gnulib-common.m4
-# serial 100
+# serial 101
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,
@@ -144,8 +144,9 @@ AC_DEFUN([gl_COMMON_BODY]
[[__nodiscard__]] __attribute__ ((__deprecated__)) int bar2 (int);
======================================================================
This gives a syntax error
- - in C mode with gcc, and
- - in C++ mode with clang++ version < 16.
+ - in C mode with gcc
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796>, and
+ - in C++ mode with clang++ version < 16, and
- in C++ mode, inside extern "C" {}, still in newer clang++ versions
<https://github.com/llvm/llvm-project/issues/101990>.
*/