Skip to content

Nested designators not supported for C initialization #343

Description

@totalspectrum

This particularly affects anonymous structs, e.g.

union {
  struct { float x, y; };
  float raw[2];
} point = { .x = 1.0, .y = 2.0 }

fails, as does an attempt ot initialize with {.raw[0] = 1.0, .raw[1] = 2.0 }.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions