re PR c/67432 (Improve error message on empty enum)
authorMarek Polacek <polacek@redhat.com>
Wed, 2 Sep 2015 21:00:38 +0000 (21:00 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 2 Sep 2015 21:00:38 +0000 (21:00 +0000)
commitd04ff41777d999fe5f387f46ec8b9cb22422c513
tree3901f7d42cdbd8c3a98a30c77f0966011f7cd54d
parentdb3015e9e3b5bd8bae0cf6c629f4f8333a01f855
re PR c/67432 (Improve error message on empty enum)

PR c/67432
* c-parser.c (c_parser_enum_specifier): Give a better error for
an empty enum.

* gcc.dg/pr67432.c: New test.

From-SVN: r227421
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67432.c [new file with mode: 0644]