Skip to content

Designated initialization of named struct inside anonymous struct #33

Description

@fuhsnn
struct S {
  struct {
    struct {
      int i;
    } m;
  };
};
struct S s = { .m.i = 0 };

pcc failed with:

p.c, line 8: member missing
p.c, line 8: excess of initializing elements

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions