Commit 4146b7b8 by Paolo Carlini

re PR c++/68726 (ice: tree check: expected tree_vec, have error_mark in…

re PR c++/68726 (ice: tree check: expected tree_vec, have error_mark in comp_template_args_with_info, at cp/pt.c:7890)

/cp
2016-02-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/68726
	* pt.c (lookup_template_class_1): Check tsubst return value for
	error_mark_node.

/testsuite
2016-02-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/68726
	* g++.dg/cpp0x/pr68726.C: New.

From-SVN: r233340
parent 0d7d9458
...@@ -8547,6 +8547,8 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context, ...@@ -8547,6 +8547,8 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context,
arglist, complain, NULL_TREE); arglist, complain, NULL_TREE);
--processing_template_decl; --processing_template_decl;
TREE_VEC_LENGTH (arglist)++; TREE_VEC_LENGTH (arglist)++;
if (partial_inst_args == error_mark_node)
return error_mark_node;
use_partial_inst_tmpl = use_partial_inst_tmpl =
/*...and we must not be looking at the partial instantiation /*...and we must not be looking at the partial instantiation
itself. */ itself. */
......
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