Commit c3646b46 by Jason Merrill Committed by Jason Merrill

pt.c (tsubst_decl): Use void_zero_node instead of error_mark_node as a placeholder.

	* pt.c (tsubst_decl) [FIELD_DECL]: Use void_zero_node
	instead of error_mark_node as a placeholder.

From-SVN: r180001
parent 6fd7dd57
2011-10-14 Jason Merrill <jason@redhat.com>
* pt.c (tsubst_decl) [FIELD_DECL]: Use void_zero_node
instead of error_mark_node as a placeholder.
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/38174
......
......@@ -10273,8 +10273,8 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
{
/* Set up DECL_TEMPLATE_INFO so that we can get at the
NSDMI in perform_member_init. Still set DECL_INITIAL
to error_mark_node so that we know there is one. */
DECL_INITIAL (r) = error_mark_node;
so that we know there is one. */
DECL_INITIAL (r) = void_zero_node;
gcc_assert (DECL_LANG_SPECIFIC (r) == NULL);
retrofit_lang_decl (r);
DECL_TEMPLATE_INFO (r) = build_template_info (t, args);
......
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