* c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
authorKeith Seitz <keiths@redhat.com>
Mon, 21 Sep 2009 19:23:46 +0000 (19:23 +0000)
committerKeith Seitz <keiths@redhat.com>
Mon, 21 Sep 2009 19:23:46 +0000 (19:23 +0000)
that a type is not an aggregate type.

gdb/ChangeLog
gdb/c-exp.y

index 83d7376ef6964c29bd7975ddd548420710be9853..f9a865e79704625d7984fda8e83e47a5030fb1d4 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-21  Keith Seitz  <keiths@redhat.com>
+
+       * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
+       that a type is not an aggregate type.
+
 2009-09-21  Jason Orendorff  <jason.orendorff@gmail.com>
 
        PR python/10666:
index f8e4f1282633ca44fe288dda0bd91d042d22e610..f5abacf37828f67a139e9aaf925641eb10d8c233 100644 (file)
@@ -703,6 +703,7 @@ variable:   block COLONCOLON name
 qualified_name:        typebase COLONCOLON name
                        {
                          struct type *type = $1;
+                         CHECK_TYPEDEF (type);
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                              && TYPE_CODE (type) != TYPE_CODE_UNION
                              && TYPE_CODE (type) != TYPE_CODE_NAMESPACE)
@@ -718,6 +719,7 @@ qualified_name:     typebase COLONCOLON name
                        {
                          struct type *type = $1;
                          struct stoken tmp_token;
+                         CHECK_TYPEDEF (type);
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                              && TYPE_CODE (type) != TYPE_CODE_UNION
                              && TYPE_CODE (type) != TYPE_CODE_NAMESPACE)