On Sat Sep 27 16:47:23 2025 +0000, Alfred Agrell wrote:
That's not valid C. https://godbolt.org/z/f33Gar68P (MSVC defaults to not defining __STDC_VERSION__, and GCC and Clang default to permitting that GCC extension with no warning.) IMO the correct fix is either moving them to just after the declaration section, or simply using the sizeof version for everything. Though I will admit the relevant warnings look like compiler bugs. I'll go file bug reports.
https://github.com/llvm/llvm-project/issues/161014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93287 (several years old, closed wontfix)