Commit f2381074 by Kai Tietz Committed by Kai Tietz

re PR c++/58835 (ICE with __PRETTY_FUNCTION__ in broken function)

	PR c++/58835
	* semantics.c (finish_fname): Handle error_mark_node.

From-SVN: r207955
parent 350b83cc
2014-02-20 Kai Tietz <ktietz@redhat.com>
PR c++/58835
* semantics.c (finish_fname): Handle error_mark_node.
2014-02-19 Jason Merrill <jason@redhat.com> 2014-02-19 Jason Merrill <jason@redhat.com>
PR c++/60046 PR c++/60046
......
...@@ -2630,7 +2630,8 @@ finish_fname (tree id) ...@@ -2630,7 +2630,8 @@ finish_fname (tree id)
tree decl; tree decl;
decl = fname_decl (input_location, C_RID_CODE (id), id); decl = fname_decl (input_location, C_RID_CODE (id), id);
if (processing_template_decl && current_function_decl) if (processing_template_decl && current_function_decl
&& decl != error_mark_node)
decl = DECL_NAME (decl); decl = DECL_NAME (decl);
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