https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67432
Bug ID: 67432 Summary: Improve error message on empty enum Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengniansun at gmail dot com Target Milestone: --- IMHO, it would be better to improve the error message on empty enumeration. $: cat t.c enum E {}; $: gcc-trunk -c t.c t.c:1:9: error: expected identifier before ‘}’ token enum E {}; ^ $: clang-trunk -c t.c t.c:1:9: error: use of empty enum enum E {}; ^ 1 error generated. $