Commit ad16ae7f by Mark Mitchell Committed by Mark Mitchell

decl.c (cp_make_fname_decl): When creating a top-level __FUNCTION__-like symbol,…

decl.c (cp_make_fname_decl): When creating a top-level __FUNCTION__-like symbol, do register it with pushdecl.

	* decl.c (cp_make_fname_decl): When creating a top-level
	__FUNCTION__-like symbol, do register it with pushdecl.

From-SVN: r73515
parent 2860518a
2003-11-12 Mark Mitchell <mark@codesourcery.com> 2003-11-12 Mark Mitchell <mark@codesourcery.com>
* decl.c (cp_make_fname_decl): When creating a top-level
__FUNCTION__-like symbol, do register it with pushdecl.
* decl.c (finish_case_label): Do not check that we are within a * decl.c (finish_case_label): Do not check that we are within a
switch statement here. switch statement here.
* parser.c (struct cp_parser): Add in_iteration_statement_p and * parser.c (struct cp_parser): Add in_iteration_statement_p and
......
...@@ -3157,9 +3157,10 @@ cp_make_fname_decl (tree id, int type_dep) ...@@ -3157,9 +3157,10 @@ cp_make_fname_decl (tree id, int type_dep)
while (b->level_chain->kind != sk_function_parms) while (b->level_chain->kind != sk_function_parms)
b = b->level_chain; b = b->level_chain;
pushdecl_with_scope (decl, b); pushdecl_with_scope (decl, b);
cp_finish_decl (decl, init, NULL_TREE, LOOKUP_ONLYCONVERTING);
} }
else
cp_finish_decl (decl, init, NULL_TREE, LOOKUP_ONLYCONVERTING); pushdecl_top_level_and_finish (decl, init);
return decl; return decl;
} }
......
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