Hello, I'm compiling on cygwin on my Dell Laptop. I'm running windows xp pro, with the 3.4.4 version of gcc
my source file: #include <stdio.h> typedef enum { ac = -1, ab = 0xffffffff, aa = 1, } en; int main() { en a = ab; printf("a = %d sizeof %d\n", a, sizeof(en)); return 0; } $ gcc -Wall test.c test.c: In function `main': test.c:11: warning: int format, different type arg (arg 2) $ ./a.exe a = -1 sizeof 0 shouldn't sizeof be 4? -- Summary: enum reporting sizeof == 0 Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: richard at beatnik dot com GCC build triplet: 3.4.4 GCC host triplet: 3.4.4 GCC target triplet: 3.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30160