Noticed that while investigating PR107364: enum processor_vendor { VENDOR_INTEL = 1, VENDOR_AMD, VENDOR_ZHAOXIN, VENDOR_OTHER, VENDOR_CENTAUR, VENDOR_CYRIX, VENDOR_NSC, BUILTIN_VENDOR_MAX = VENDOR_OTHER, VENDOR_MAX }; As one can see VENDOR_CENTAUR == 5, but VENDOR_MAX is also == 5 as BUILTIN_VENDOR_MAX points to 4 and thus VENDOR_MAX == 5. Maybe we can warn about 2 enum values that have the same value and none of them is defined with '= some_value'. What do you think?
Dup of much older bug 16186. *** This bug has been marked as a duplicate of bug 16186 ***