tinycc-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Tinycc-devel] TCC bug: struct initialisation using enums
From
:
Masha Rabinovich
Subject
:
[Tinycc-devel] TCC bug: struct initialisation using enums
Date
:
Sat, 22 Nov 2008 12:52:22 +0100
typedef struct S S;
struct S
{
int e;
char *s;
int i;
};
enum
{
UNO = 1,
DOS,
TRES,
};
// ok
S s1[] = {
{UNO, "UNO", 1},
{DOS, "DOS", 2},
{TRES, "TRES", 3},
};
// ok
S s2[] = {
1, "UNO", 1,
2, "DOS", 2,
3, "TRES", 3,
};
// fail
S s3[] = {
UNO, "UNO", 1,
DOS, "DOS", 2,
TRES, "TRES", 3,
};
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
[Tinycc-devel] TCC bug: struct initialisation using enums
,
Masha Rabinovich
<=
Prev by Date:
[Tinycc-devel] minor tcc bug
Next by Date:
[Tinycc-devel] TCC bug: error compile rint() from math.h
Previous by thread:
[Tinycc-devel] minor tcc bug
Next by thread:
[Tinycc-devel] TCC bug: error compile rint() from math.h
Index(es):
Date
Thread