* c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding

that a type is not an aggregate type.
This commit is contained in:
Keith Seitz 2009-09-21 19:23:46 +00:00
parent 3fe8f3b349
commit e8269d5fd9
2 changed files with 7 additions and 0 deletions

View 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:

View 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)