From e8269d5fd91be00a0232813bf1fa752d78bd513b Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mon, 21 Sep 2009 19:23:46 +0000 Subject: [PATCH] * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding that a type is not an aggregate type. --- gdb/ChangeLog | 5 +++++ gdb/c-exp.y | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 83d7376ef69..f9a865e7970 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-21 Keith Seitz + + * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding + that a type is not an aggregate type. + 2009-09-21 Jason Orendorff PR python/10666: diff --git a/gdb/c-exp.y b/gdb/c-exp.y index f8e4f128263..f5abacf3782 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) -- 2.30.2