projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3898cc
)
tree.c (decl_function_context): Don't treat C++ member functions of classes declared...
author
Mike Stump
<mrs@gcc.gnu.org>
Fri, 9 Sep 1994 23:48:21 +0000
(23:48 +0000)
committer
Mike Stump
<mrs@gcc.gnu.org>
Fri, 9 Sep 1994 23:48:21 +0000
(23:48 +0000)
* tree.c (decl_function_context): Don't treat C++ member
functions of classes declared in a function, as nested functions.
From-SVN: r8065
gcc/tree.c
patch
|
blob
|
history
diff --git
a/gcc/tree.c
b/gcc/tree.c
index
85ea6c0
..
f947ff7
100644
(file)
--- 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)