https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53479

--- Comment #7 from DB <db0451 at gmail dot com> ---
Interesting switch, thanks - doesn't make any difference to warnings at the
moment, though.

But it hits on what I'm going for: ensuring the compiler that I'll only use
named enumerator values. Ideally though, the Standard or compiler would provide
a way to specify that as an attribute per enum, so the programmer could mix
both schemes. I personally haven't used enums as bitmasks, so my programs have
only used discrete enumerators, but the bitfield case seems allowed and common.
Still, for cases where I'm not using it, I'd like a way to tell the compiler to
trust me!

Reply via email to