From 2a6cff31d614360d48076b12b598bb89ffa0a1ec Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 21 Feb 1996 19:12:32 +0000 Subject: [PATCH] (decl_function_context): Do decl_function_context right for | function-local classes. From-SVN: r11334 --- gcc/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree.c b/gcc/tree.c index a5961c0b867..eda33bb3541 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4267,7 +4267,7 @@ decl_function_context (decl) { if (TREE_CODE (context) == RECORD_TYPE || TREE_CODE (context) == UNION_TYPE) - context = NULL_TREE; + context = TYPE_CONTEXT (context); else if (TREE_CODE (context) == TYPE_DECL) context = DECL_CONTEXT (context); else if (TREE_CODE (context) == BLOCK) -- 2.30.2