diff options
author | Keith Seitz <keiths@redhat.com> | 2009-09-21 19:23:46 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2009-09-21 19:23:46 +0000 |
commit | e8269d5fd91be00a0232813bf1fa752d78bd513b (patch) | |
tree | 986abb0ca875663573fedbe19885d84d305f7a7d /gdb/c-exp.y | |
parent | 3fe8f3b349c62a22a209e7eace236f9d2a2effcb (diff) | |
download | gdb-e8269d5fd91be00a0232813bf1fa752d78bd513b.zip gdb-e8269d5fd91be00a0232813bf1fa752d78bd513b.tar.gz gdb-e8269d5fd91be00a0232813bf1fa752d78bd513b.tar.bz2 |
* c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
that a type is not an aggregate type.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index f8e4f12..f5abacf 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -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) |