chibicc icon indicating copy to clipboard operation
chibicc copied to clipboard

Nested designators error

Open sanxiyn opened this issue 2 years ago • 0 comments

struct s {
  struct {
    int i;
    int j;
  } t;
  int k;
};

int main() {
  struct s x = {.t.i = 1, .k = 2};
}

gives an error:

test.c:10:   struct s x = {.t.i = 1, .k = 2};
                                   ^ expected an expression

sanxiyn avatar Sep 17 '21 07:09 sanxiyn