Menu

#16 strange -fpack-struct

open
nobody
None
5
2004-03-02
2004-03-02
Konstantin
No

file "test.c"
static const char str1[]="state1";
static const char str2[]="state2";

static const struct {
const char * list[2];
} StateList = {{str1,str2}};
/* end of file test.c */

this test code compiled fine:
>h8300-hms-gcc.exe -c test.c

but with enabled -fpack-struct switch, returns error

>h8300-hms-gcc.exe -fpack-struct -c test.c
test.c:6: error: initializer for integer value is too complicated
test.c:6: error: initializer for integer value is too complicated

Discussion


Log in to post a comment.