In godbolt: https://godbolt.org/z/bY1a3e1Wz
the code in question is below (the error message says "error: either all initializer clauses should be designated or none of them should be" but I dont understand what it is saying..
struct A {
int a;
bool b;
};
struct B : A {
long c;
};
int main(void) {
B foo {{.a = 1, .b = false}, .c = 7};
}