Commit fe1e3bf4 by Mike Stump

tree.c (decl_function_context): Don't treat C++ member functions of classes…

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
parent c3898ccd
...@@ -3850,7 +3850,7 @@ decl_function_context (decl) ...@@ -3850,7 +3850,7 @@ decl_function_context (decl)
{ {
if (TREE_CODE (context) == RECORD_TYPE if (TREE_CODE (context) == RECORD_TYPE
|| TREE_CODE (context) == UNION_TYPE) || TREE_CODE (context) == UNION_TYPE)
context = TYPE_CONTEXT (context); context = NULL_TREE;
else if (TREE_CODE (context) == TYPE_DECL) else if (TREE_CODE (context) == TYPE_DECL)
context = DECL_CONTEXT (context); context = DECL_CONTEXT (context);
else if (TREE_CODE (context) == BLOCK) else if (TREE_CODE (context) == BLOCK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment