From: jason Date: Wed, 16 Dec 2015 18:22:23 +0000 (+0000) Subject: PR c++/68309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ce37be5f8821ad3f4ff16109a5e735bc874f8a6;p=thirdparty%2Fgcc.git PR c++/68309 * pt.c (instantiate_decl): Revert earlier change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231714 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 751779244f60..488b2ad0ad01 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2015-12-16 Jason Merrill + PR c++/68309 + * pt.c (instantiate_decl): Revert earlier change. + PR c++/63628 * pt.c (tsubst_pack_expansion): Also make dummy decls if retrieve_local_specialization fails. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2c2da11488be..5cf2497f79a2 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -21742,13 +21742,8 @@ instantiate_decl (tree d, int defer_ok, template from within the body of another. */ saved_local_specializations = local_specializations; - /* Set up the list of local specializations, copying the current - list if there is one. */ - if (local_specializations) - local_specializations - = new hash_map (*local_specializations); - else - local_specializations = new hash_map; + /* Set up the list of local specializations. */ + local_specializations = new hash_map; /* Set up context. */ if (DECL_OMP_DECLARE_REDUCTION_P (code_pattern)