+2010-04-06 Jason Merrill <jason@redhat.com>
+
+ PR c++/43621
+ * pt.c (maybe_update_decl_type): Check the return value from
+ push_scope.
+
2010-04-01 Jason Merrill <jason@redhat.com>
* decl.c (next_initializable_field): No longer static.
TYPENAME_TYPEs and SCOPE_REFs that were previously dependent. */
tree args = current_template_args ();
tree auto_node = type_uses_auto (type);
+ tree pushed;
if (auto_node)
{
tree auto_vec = make_tree_vec (1);
TREE_VEC_ELT (auto_vec, 0) = auto_node;
args = add_to_template_args (args, auto_vec);
}
- push_scope (scope);
+ pushed = push_scope (scope);
type = tsubst (type, args, tf_warning_or_error, NULL_TREE);
- pop_scope (scope);
+ if (pushed)
+ pop_scope (scope);
}
if (type == error_mark_node)
+2010-04-06 Jason Merrill <jason@redhat.com>
+
+ PR c++/43621
+ * g++.dg/template/error-recovery2.C: New.
+
2010-04-06 Jan Hubicka <jh@suse.czpli
PR tree-optimization/42906