Skip to content

codegen - bitfield ignores base-type #881

@quietust

Description

@quietust

If a <bitfield-type> is declared with one base-type and it is later referenced inside a structure with a different base-type, then the inline base-type attribute is ignored, potentially leading to structure misalignment.

We have special logic for enums to wrap them inside enum_field<>, but we have no such support for bitfields. Fortunately, this has only turned up in one place so far, and it's a rather obscure spot so fixing it isn't particularly urgent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions