diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-09-09 23:48:21 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-09-09 23:48:21 +0000 |
commit | 56b9ffefa6dc22542f09f7ef67479a64a206a69b (patch) | |
tree | 8907f22be38a31cf5452dd8724a0ff79c016ef87 /gcc/tree.c | |
parent | f1d67a2f0260fecf583fd1210695dba47e5c2c33 (diff) | |
download | gcc-56b9ffefa6dc22542f09f7ef67479a64a206a69b.tar.gz |
* tree.c (decl_function_context): Don't treat C++ member
functions of classes declared in a function, as nested functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 85ea6c0106f..f947ff70a2f 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) |