Skip to content

designated initializer style #32

@roptat

Description

@roptat

Sorry, here's another one :D

struct point {
  int    x;
  int    y;
};

int main() {
  struct point p = { .y = 2, .x = 1 };
}

fails to parse the initialization of variable p.

designated initializer style is a C99 feature.

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