Commit c647c985 by Jim Wilson

(decl_function_context): Handle QUAL_UNION_TYPE.

From-SVN: r13083
parent 691c003d
...@@ -4242,7 +4242,8 @@ decl_function_context (decl) ...@@ -4242,7 +4242,8 @@ decl_function_context (decl)
while (context && TREE_CODE (context) != FUNCTION_DECL) while (context && TREE_CODE (context) != FUNCTION_DECL)
{ {
if (TREE_CODE (context) == RECORD_TYPE if (TREE_CODE (context) == RECORD_TYPE
|| TREE_CODE (context) == UNION_TYPE) || TREE_CODE (context) == UNION_TYPE
|| TREE_CODE (context) == QUAL_UNION_TYPE)
context = TYPE_CONTEXT (context); context = TYPE_CONTEXT (context);
else if (TREE_CODE (context) == TYPE_DECL) else if (TREE_CODE (context) == TYPE_DECL)
context = DECL_CONTEXT (context); context = DECL_CONTEXT (context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment