News for hackers. Stuff that matters.
Re:C constructs that still don't work in C++ by aw1621107 on Monday May 25, 2026 @09:16AM (#48266477)
> It's especially tragic because Clang already had the full C99 designated init feature set in C++ mode implemented long before C++20 and it worked just fine.

How did Clang handle differences between member declaration order and the order in which initializers appeared?

Re:C constructs that still don't work in C++ by flohofwoe on Monday May 25, 2026 @11:26AM (#48267977)
It simply reorders them, same behaviour as in C:

https://www.godbolt.org/z/ex138rh51

(the warnings in C++ mode had only been added after C++20)

Re:C constructs that still don't work in C++ by aw1621107 on Tuesday May 26, 2026 @05:03AM (#48277070)
Hrm, I take it that was considered too footgun-y for the committee?