bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang++ 11 compilation issues


From: Paul Eggert
Subject: Re: clang++ 11 compilation issues
Date: Wed, 13 Jan 2021 16:37:58 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 1/12/21 12:19 PM, Bruno Haible wrote:
Those macros check for
__cpp_static_assert to assume something about _Static_assert, which
seems dubious.
Paul can tell more about this one.

I agree it's dubious.

Also, looking over the current verify.h, it's a little complicated and I doubt whether the complexity is worth it nowadays. How about if we simplify the C++ case, by simply relying on __cpp_static_assert there? Although this could miss opportunities for generating diagnostics via older C++ compilers, I doubt whether they're worth the trouble any more.

Proposed Gnulib patch attached (I haven't installed it).

Attachment: 0001-verify-rely-more-on-__cpp_static_assert.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]