[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
- [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3,
Sergey Korshunoff <=
- Prev by Date:
Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1.
- Next by Date:
Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1.
- Previous by thread:
[Tinycc-devel] CValue
- Next by thread:
Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3
- Index(es):