aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1994-09-09 23:48:21 +0000
committerMike Stump <mrs@gcc.gnu.org>1994-09-09 23:48:21 +0000
commitfe1e3bf47ed310176b6a0c71fee4fd27e65edf3e (patch)
tree8907f22be38a31cf5452dd8724a0ff79c016ef87 /gcc
parentc3898ccd985d6b16504c0d3da21f21769fb1fce5 (diff)
downloadgcc-fe1e3bf47ed310176b6a0c71fee4fd27e65edf3e.zip
gcc-fe1e3bf47ed310176b6a0c71fee4fd27e65edf3e.tar.gz
gcc-fe1e3bf47ed310176b6a0c71fee4fd27e65edf3e.tar.bz2
tree.c (decl_function_context): Don't treat C++ member functions of classes declared in a function...
* tree.c (decl_function_context): Don't treat C++ member functions of classes declared in a function, as nested functions. From-SVN: r8065
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 85ea6c0..f947ff7 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3850,7 +3850,7 @@ decl_function_context (decl)
{
if (TREE_CODE (context) == RECORD_TYPE
|| TREE_CODE (context) == UNION_TYPE)
- context = TYPE_CONTEXT (context);
+ context = NULL_TREE;
else if (TREE_CODE (context) == TYPE_DECL)
context = DECL_CONTEXT (context);
else if (TREE_CODE (context) == BLOCK)