[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] struct init problem
From: |
s duclos |
Subject: |
[Tinycc-devel] struct init problem |
Date: |
Tue, 30 Jul 2002 07:37:04 -0700 (PDT) |
Salut Fabrice,
Here a piece of code that compile on gcc 2.95
but not on tcc 0.9.9
// test1.c:
struct {
int length;
char name[4];
} n = {4, {"XXX"}};
//} n = {{"XXX"}};
struct M { char* c; };
struct M m = { (char*)n.name };
tcc -o test1.o -c test1.c
give: segemntation fault
patching tcc with
cur_text_section = sec;
at tcc.c:5580:
give: test1.c:12: constant expected
Note that n={{"XXX"}}; work fine after removing
the field 'length'.
Thanks,
Sylvain.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] struct init problem,
s duclos <=