[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [BUG] Nested array/struct/union initialization problem
From: |
Marc Andre Tanner |
Subject: |
[Tinycc-devel] [BUG] Nested array/struct/union initialization problem |
Date: |
Tue, 25 Sep 2007 18:37:01 +0200 |
User-agent: |
Thunderbird 2.0.0.6 (Windows/20070728) |
Hi,
Okay this is currently way too complicated for me to solve on my own.
The follwoing code sniped demonstrates the issue. Tcc exits with:
bug.c:13: identifier expected
The call to expect comes from within unary () at tcc.c:6587 where t = '.'
struct format_option {
union {
const char * fo_str ;
int fo_int ;
int fo_time ;
} ;
unsigned int empty : 1 ;
enum { FO_STR , FO_INT , FO_TIME } type ;
char ch ;
} ;
static struct format_option track_fopts [ 11 ] = {
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'a' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'l' } ,
{ { . fo_int = 0 } , 0 , FO_INT , 'D' } ,
{ { . fo_int = 0 } , 0 , FO_INT , 'n' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 't' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'y' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'g' } ,
{ { . fo_time = 0 } , 0 , FO_TIME , 'd' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'f' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , FO_STR , 'F' } ,
{ { . fo_str = ( ( void * ) 0 ) } , 0 , 0 , 0 }
} ;
Would be great if someone could take a look at it.
Thanks,
Marc
--
Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
- [Tinycc-devel] [BUG] Nested array/struct/union initialization problem,
Marc Andre Tanner <=