Commit f4fa7423 by Richard Kenner

(duplicate_decls): Don't clear DECL_CONTEXT of new decl if it is a

function.

From-SVN: r9893
parent 2e21df5a
......@@ -1751,7 +1751,8 @@ duplicate_decls (newdecl, olddecl)
DECL_SOURCE_LINE (newdecl) = DECL_SOURCE_LINE (olddecl);
DECL_SOURCE_FILE (newdecl) = DECL_SOURCE_FILE (olddecl);
if (DECL_CONTEXT (olddecl) == 0)
if (DECL_CONTEXT (olddecl) == 0
&& TREE_CODE (newdecl) != FUNCTION_DECL)
DECL_CONTEXT (newdecl) = 0;
}
......
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