Are anonymous structures/unions compatible with their “flattened” form in C17?
Summary In C17, anonymous structures and unions are considered members of the containing structure, but their compatibility with a “flattened” form across translation units is ambiguous. This ambiguity leads to potential type mismatches in real systems, especially when linking objects compiled separately. Root Cause C17 lacks explicit rules for type compatibility of anonymous structures/unions across … Read more