You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for a class, the direct base classes in declaration order, followed by the direct non-static data members ([class.mem]) that are not members of an anonymous union, in declaration order.
staticunion {
int c;
};
The member c is an element of the anonymous union, I believe. Presumably, the intent of [dcl.init.aggr] p2 is to exclude the member of an anonymous union member of a class of which that member is a direct member. Should we say
for a class, the direct base classes in declaration order, followed by the direct non-static data members ([class.mem]) that are not members of an anonymous union member, in declaration order.
It could make that rule admit that a member of an anonymous union is an element of the anonymous union.
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[dcl.init.aggr] p2 Elements of aggregate
[dcl.init.aggr] p2 Elements of anonymous union
Sep 13, 2021
xmh0511
changed the title
[dcl.init.aggr] p2 Elements of anonymous union
[dcl.init.aggr] p2 Elements of an anonymous union
Sep 13, 2021
The member
c
is an element of the anonymous union, I believe. Presumably, the intent of [dcl.init.aggr] p2 is to exclude the member of an anonymous union member of a class of which that member is a direct member. Should we sayIt could make that rule admit that a member of an anonymous union is an element of the anonymous union.
The text was updated successfully, but these errors were encountered: