Commit 4793cbba by Jason Merrill Committed by Jason Merrill

re PR c++/68309 (ICE: Segmentation fault)

	PR c++/68309
	* pt.c (instantiate_decl): Revert earlier change.

From-SVN: r231714
parent 65016251
2015-12-16 Jason Merrill <jason@redhat.com>
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.
......
......@@ -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<tree, tree> (*local_specializations);
else
local_specializations = new hash_map<tree, tree>;
/* Set up the list of local specializations. */
local_specializations = new hash_map<tree, tree>;
/* Set up context. */
if (DECL_OMP_DECLARE_REDUCTION_P (code_pattern)
......
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