https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120503
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- An unnamed enumeration that does not have a typedef name for linkage purposes (9.2.3) and that has a first enumerator is denoted, for linkage purposes (6.6), by its underlying type and its first enumerator; such an enumeration is said to have an enumerator as a name for linkage purposes.