OSDN Git Service

(decl_function_context): Handle QUAL_UNION_TYPE.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Oct 1996 18:24:42 +0000 (18:24 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Oct 1996 18:24:42 +0000 (18:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13083 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.c

index a5b67dd..eb9d7b1 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);