Commit 8e07ab9f by Paolo Carlini Committed by Paolo Carlini

re PR c++/50611 (Error reporting routines re-entered)

2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50611
	* pt.c (tsubst_copy_and_build): If (complain & tf_error) is false
	do not call unqualified_name_lookup_error.

From-SVN: r179802
parent 92b2342a
2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50611
* pt.c (tsubst_copy_and_build): If (complain & tf_error) is false
do not call unqualified_name_lookup_error.
2011-10-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50660
......
......@@ -13026,7 +13026,11 @@ tsubst_copy_and_build (tree t,
if (error_msg)
error (error_msg);
if (!function_p && TREE_CODE (decl) == IDENTIFIER_NODE)
decl = unqualified_name_lookup_error (decl);
{
if (complain & tf_error)
unqualified_name_lookup_error (decl);
decl = error_mark_node;
}
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