Commit f41aecf4 by Jason Merrill Committed by Jason Merrill

pt.c (retrieve_specialization): Make sure our arguments have gone through strip_typedefs.

	* pt.c (retrieve_specialization): Make sure our arguments have
	gone through strip_typedefs.

From-SVN: r223305
parent b237c4cb
2015-05-18 Jason Merrill <jason@redhat.com> 2015-05-18 Jason Merrill <jason@redhat.com>
* pt.c (retrieve_specialization): Make sure our arguments have
gone through strip_typedefs.
* pt.c (tsubst_decl) [VAR_DECL]: Call coerce_innermost_template_parms. * pt.c (tsubst_decl) [VAR_DECL]: Call coerce_innermost_template_parms.
(determine_specialization): Call coerce_template_parms. (determine_specialization): Call coerce_template_parms.
......
...@@ -1058,6 +1058,14 @@ retrieve_specialization (tree tmpl, tree args, hashval_t hash) ...@@ -1058,6 +1058,14 @@ retrieve_specialization (tree tmpl, tree args, hashval_t hash)
? TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl)) ? TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl))
: template_class_depth (DECL_CONTEXT (tmpl)))); : template_class_depth (DECL_CONTEXT (tmpl))));
#ifdef ENABLE_CHECKING
/* We should have gone through coerce_template_parms by now. */
++processing_template_decl;
if (!any_dependent_template_arguments_p (args))
gcc_assert (strip_typedefs_expr (args, NULL) == args);
--processing_template_decl;
#endif
if (optimize_specialization_lookup_p (tmpl)) if (optimize_specialization_lookup_p (tmpl))
{ {
tree class_template; tree class_template;
......
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