Comma after ENUM with no explicit value


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664874 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrift.y b/compiler/cpp/src/thrift.y
index 468cbb3..e1dd84f 100644
--- a/compiler/cpp/src/thrift.y
+++ b/compiler/cpp/src/thrift.y
@@ -316,7 +316,7 @@
       $$ = new t_constant($1, $3);
     }
 |
-  tok_identifier
+  tok_identifier CommaOrSemicolonOptional
     {
       pdebug("EnumDef => tok_identifier");
       $$ = new t_constant($1);