(decl_function_context): Handle QUAL_UNION_TYPE.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Oct 1996 18:24:42 +0000 (10:24 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Oct 1996 18:24:42 +0000 (10:24 -0800)
From-SVN: r13083

gcc/tree.c

index a5b67dd7002cd55c405d3e139466e6af33b25387..eb9d7b13dda5df0d46d70c24656dd1933cdf40f0 100644 (file)
@@ -4242,7 +4242,8 @@ decl_function_context (decl)
   while (context && TREE_CODE (context) != FUNCTION_DECL)
     {
       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);
       else if (TREE_CODE (context) == TYPE_DECL)
        context = DECL_CONTEXT (context);