tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3


From: Sergey Korshunoff
Subject: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3
Date: Sat, 7 Mar 2015 10:23:26 +0300

Hi! There is the following problem:
struct {
    int c[2];
} cases[1] = {
    ((int)0+(int)1) + ((int)0+(int)1), 1 // error: ',' expected (got "+")
    // 1, ((int)0+(int)1) + ((int)0+(int)1) // OK
    // (int) ((int)0+(int)1) + ((int)0+(int)1) // OK
    // + ((int)0+(int)1) + ((int)0+(int)1), 1 // OK
};
int main() { return 0; }

Looks like some variable is not inited. I want to simulate a last case
for a problem solution. How todo this? Any tips?

PS: this is a last problem with the J interpreter compilation by tcc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]