[Bug c/114730] should enum types be vector types?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114730 --- Comment #3 from Joseph S. Myers --- When implementing C23 enums with fixed underlying types I tried to ensure that enums with underlying type bool were handled consistently with bool (cf. bug 96496 where they're not always handled consistently for C++) but it seems I missed this vector_size check.
[Bug c/114730] should enum types be vector types?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114730 --- Comment #2 from Richard Biener --- I think we need to reject all integral types whose operation range doesn't match the corresponding integer mode range. For enums it depends on the language standard, in general I'd say it's not wanted. Some targets have __int24, we want to reject that as well for example.
[Bug c/114730] should enum types be vector types?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114730 --- Comment #1 from Andrew Pinski --- So it turns out before GCC 9, using enum vectors would ICE (PR 87286). It was asked then if we should reject them but there was no answer to question that but rather just fixing the ICE alone.