Commit 2a6cff31 by Jason Merrill

(decl_function_context): Do decl_function_context right for

|       function-local classes.

From-SVN: r11334
parent d6d22108
...@@ -4267,7 +4267,7 @@ decl_function_context (decl) ...@@ -4267,7 +4267,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 = NULL_TREE; context = TYPE_CONTEXT (context);
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