Christos Zoulas via tz wrote in <[email protected]>: |On 2026-01-07 12:58 pm, Paul Eggert wrote: |> On 2026-01-07 09:12, Christos Zoulas via tz wrote: |>> Hello, |>> |>> The new tzcode uses static_assert() with no message which is a c2x |>> extension. clang does not like that by default (without specifying - |>> std=gnu2x). ... |> Which clang? I'm not seeing that diagnostic with clang version 20.1.8 |> (Fedora 20.1.8-4.fc42). | |clang-19.1.7 ... |The problem is that the static_assert macro is defined for pre-2023 |compilers.
And in a totally borked way that noone can use! They should have used the C++ variant, but instead they have chosen to create some unusable borked thing -- it is not only what you say next, oh no! |It has been present in stdc11 and stdc17 IIRC. What is new in stdc2023, |is that the message can be optional. |I.e. prior to std2023, you needed static_assert(cond, message), with |2023 you can have static_assert(cond). |This is what clang is complaining about when I am building using |-std=gnu11: the missing message which |was made optional in stdc2023. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
