Skip to content

cparser aborts on initializating structs in arrays #34

Open

Description

@GabrielRavier
struct struct_type
{
    int member;
};

void f(int x)
{
    struct struct_type a[] = {{x}};
}

Results in cparser outputting this :

cparser: ir/opt/scalar_replace.c:242: link_all_leaf_members: Assertion `is_End(succ)' failed.
Aborted (core dumped)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions