From: jason Date: Mon, 7 Jun 2010 20:42:09 +0000 (+0000) Subject: * pt.c (lookup_template_class): Don't mess with X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6850974ffe0ec3cd572917f9cbf5b9d8c9936868;p=thirdparty%2Fgcc.git * pt.c (lookup_template_class): Don't mess with DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160397 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3bfd7f1e4b25..7119dddff5b6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2010-06-07 Jason Merrill + + * pt.c (lookup_template_class): Don't mess with + DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations. + 2010-06-07 Jakub Jelinek PR c++/44444 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b95fdf728bd0..fd93b1b3dc15 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -6723,9 +6723,10 @@ lookup_template_class (tree d1, /* Note this use of the partial instantiation so we can check it later in maybe_process_partial_specialization. */ - DECL_TEMPLATE_INSTANTIATIONS (templ) - = tree_cons (arglist, t, - DECL_TEMPLATE_INSTANTIATIONS (templ)); + if (use_partial_inst_tmpl) + DECL_TEMPLATE_INSTANTIATIONS (templ) + = tree_cons (arglist, t, + DECL_TEMPLATE_INSTANTIATIONS (templ)); if (TREE_CODE (t) == ENUMERAL_TYPE && !is_dependent_type) /* Now that the type has been registered on the instantiations