Closed xmh0511 closed 11 months ago
The first such entity may be an unnamed bit-field, which is not a non-static data member.
E.g. given
struct A { int : 23; char c; };
struct B { int b : 23; char c; };
A
and B
are layout-compatible.
I'm not seeing anything that's unclear about the current wording. In "first such entity", the word "such" refers to the just-described class of entities, namely non-static data members and bit-fields, so "first such entity" means "first non-static data member or bit-field", which is exactly what it should mean.
Full name of submitter (unless configured in github; will be published with the issue): Jim X
Given the formal example
The comment says
However, according to the rule, aren't the second non-static data members of
A
andE
the first **such entities? From this read, the common sequence ofA
andE
starts with their second members and only comprises them.Suggested Resolution
The intent should mean the common sequence must start with the first non-static data member of these classes instead of the first such entity.