|
From: | Paul Eggert |
Subject: | bug#58254: 29.0.50; Untracked lib/assert.h with Clang 14 |
Date: | Wed, 2 Nov 2022 19:53:34 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 |
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 in Thread] | Current Thread | [Next in Thread] |