fix for the array in struct initialization w/o '{', case 2
commit8d4c86114492e210f801ed98bfa0424645e14c8e
authorseyko <seyko2@gmail.com>
Sat, 7 Mar 2015 06:40:12 +0000 (7 09:40 +0300)
committerseyko <seyko2@gmail.com>
Sat, 7 Mar 2015 06:40:12 +0000 (7 09:40 +0300)
treee7ce851472ef6208dfbdadb87cb168a36f34628c
parent238e760a294ca74e46d8545f0fb80ea2af522f2b
fix for the array in struct initialization w/o '{', case 2
a test program:

    struct {
    int a[2], b[2];
    } cases[] = {
{ ((int)0), (((int)0)) },
((int)0), (((int)0)) /* error: ',' expected (got ")") */
    };
    int main() { return 0; }

This commit allow to skip ')' in the decl_initializer() and to see ','
tccgen.c