Skip to content

flexible array members support #24

@yrashk

Description

@yrashk

For this data structure:

struct some_person {
    std::string name;
    unsigned birth_year;
    int data[];
};

I am getting this error:

error: type 'some_person' decomposes into 3 elements, but only 2 names were provided

Normal array members work fine.

Do you think it would be possible to support these?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions