[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3 |
Date: |
Sun, 8 Mar 2015 02:05:12 +0300 |
insert_to_input() is moved to the start of the decl_initializer() and
result is better:
struct {
int c[2];
// } cases[2] = { // OK
} cases[] = { // error: ',' expected (got "+")
((int)0+(int)1) + ((int)0+(int)1), 1,
((int)0+(int)1) + ((int)0+(int)1), 1
};
int main() { return 0; }
Strange... Why it depends on the cases[] declaration?