Commit c77f56bb by Jason Merrill Committed by Jason Merrill

* pt.c (retrieve_specialization): Handle null tmpl argument.

From-SVN: r196850
parent 9f5d44f4
2013-03-20 Jason Merrill <jason@redhat.com> 2013-03-20 Jason Merrill <jason@redhat.com>
* pt.c (retrieve_specialization): Handle null tmpl argument.
PR c++/17232 PR c++/17232
PR c++/56642 PR c++/56642
* pt.c (tsubst_decl): Check return value of register_specialization. * pt.c (tsubst_decl): Check return value of register_specialization.
......
...@@ -1009,6 +1009,9 @@ optimize_specialization_lookup_p (tree tmpl) ...@@ -1009,6 +1009,9 @@ optimize_specialization_lookup_p (tree tmpl)
static tree static tree
retrieve_specialization (tree tmpl, tree args, hashval_t hash) retrieve_specialization (tree tmpl, tree args, hashval_t hash)
{ {
if (tmpl == NULL_TREE)
return NULL_TREE;
if (args == error_mark_node) if (args == error_mark_node)
return NULL_TREE; return NULL_TREE;
......
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