THRIFT-655. Allow structs to be typedef'ed

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920657 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy
index f0745d7..d12cca3 100644
--- a/compiler/cpp/src/thrifty.yy
+++ b/compiler/cpp/src/thrifty.yy
@@ -168,7 +168,6 @@
 %type<ttype>     TypeDefinition
 
 %type<ttypedef>  Typedef
-%type<ttype>     DefinitionType
 
 %type<ttype>     TypeAnnotations
 %type<ttype>     TypeAnnotationList
@@ -483,9 +482,9 @@
     }
 
 Typedef:
-  tok_typedef DefinitionType tok_identifier
+  tok_typedef FieldType tok_identifier
     {
-      pdebug("TypeDef -> tok_typedef DefinitionType tok_identifier");
+      pdebug("TypeDef -> tok_typedef FieldType tok_identifier");
       t_typedef *td = new t_typedef(g_program, $2, $3);
       $$ = td;
     }
@@ -933,18 +932,6 @@
       $$ = NULL;
     }
 
-DefinitionType:
-  BaseType
-    {
-      pdebug("DefinitionType -> BaseType");
-      $$ = $1;
-    }
-| ContainerType
-    {
-      pdebug("DefinitionType -> ContainerType");
-      $$ = $1;
-    }
-
 FunctionType:
   FieldType
     {