Skip to content

Nested designators not supported for C initialization #343

@totalspectrum

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 }.

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