search for: s_fruit

Displaying 1 result from an estimated 1 matches for "s_fruit".

Did you mean: vs_fruit
2001 Feb 17
1
More comments on R-1.2.1 builds (PR#852)
...n enum is treated as char, short, long, or long long, then it does not match the requirement of section 3.5.2.1. To test this further, I made an experiment: % cat boo.c #if 1 typedef enum { apple = 0, pear } Fruit; #else typedef int Fruit; #endif typedef struct boo { Fruit x : 1; } S_Fruit; S_Fruit y; On Sun Solaris 2.7: % c89 -Xa -c boo.c % c89 -Xt -c boo.c % c89 -Xc -c boo.c "boo.c", line 9: warning: nonportable bit-field type % cc -c boo.c % gcc -c boo.c % lcc -A -A -c boo.c boo.c:9: `Fruit' is an illegal bit-field type % CC -c boo.c % g++ -c boo.c On...