[Bug c/67432] New: Improve error message on empty enum
chengniansun at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 2 07:19:00 GMT 2015
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.
$
More information about the Gcc-bugs
mailing list