4 ms·
Designated initializers were added in c++20, I was just looking at a recent change to clang's semantic analysis that warns on the differences between C99 and C+
by ndesaulniers 7y ago
Designated initializers were added in c++20, I was just looking at a recent change to clang's semantic analysis that warns on the differences between C99 and C++20 designated initializers (Todo: post link when not mobile.)
One recent difference I saw was valid in (via GNU C extension) but invalid in c++:
struct foo my_foo = ({
init(&my_foo);
my_foo;
});
- loeg 7y agoGNU C extensions are well outside the scope of standard C (or C++).