http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46333
--- Comment #12 from Jay <jay.krell at cornell dot edu> 2010-11-07 01:37:15 UTC --- Huh, maybe enum bitfields are legal C++? #if defined(__cplusplus) #define ENUM_BITFIELD(TYPE, NAME, SIZE) enum TYPE NAME : SIZE seems to work, so can go back to the 1 parameter version, and not change gengtype. I will try it.