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

            Bug ID: 114730
           Summary: should enum types be vector types?
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take this C23 code:
```
#define vect16 __attribute__((vector_size(16)))
enum   tt : long {enumv};
extern vect16 enum tt t;
```

Currently GCC accepts it while clang rejects it.

I can understand why we accept it but then if we change the underlying type to
bool, we still accept it even though vector_size does not apply to bool types.

I was trying to improve the documentation in this area when I found it.

Note I filed https://github.com/llvm/llvm-project/issues/88817 for clang side
of things.

Reply via email to