From: Paul Eggert <eggert@cs.ucla.edu>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 58254@debbugs.gnu.org
Subject: bug#58254: 29.0.50; Untracked lib/assert.h with Clang 14
Date: Wed, 2 Nov 2022 19:53:34 -0700 [thread overview]
Message-ID: <0a771f65-063d-72fb-f9a3-5bfbc6c8454f@cs.ucla.edu> (raw)
In-Reply-To: <87lepxrri4.fsf@tcd.ie>
On 10/3/22 06:00, Basil L. Contovounesios wrote:
> in the GCC case, static_assert is determined to be an
> <assert.h> macro, whereas in the Clang case the static_assert test
> fails. As a result, gl_ASSERT_H sets GL_GENERATE_ASSERT_H=true.
> Is that correct?
Yes, that's right. Your version of GCC supports 'static_assert (X)' if
you've included <assert.h>, whereas your version of Clang doesn't.
Support for 'static_assert (X)' is required by C23, where it works even
if <assert.h> is not included - a new feature that GCC doesn't support
yet for C. I expect GCC 13 to support it; I am not sure about how this
fits into Clang's release schedule.
prev parent reply other threads:[~2022-11-03 2:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-02 16:10 bug#58254: 29.0.50; Untracked lib/assert.h with Clang 14 Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-02 20:20 ` Paul Eggert
2022-10-03 13:00 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-03 2:53 ` Paul Eggert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a771f65-063d-72fb-f9a3-5bfbc6c8454f@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=58254@debbugs.gnu.org \
--cc=contovob@tcd.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).