Commit b00f4f15 by Kai Tietz Committed by Kai Tietz

re PR c++/61198 (Crash when selecting specializations through aliases.)

	PR c++/61198
	* pt.c (most_general_template): Don't break for template-alias.

From-SVN: r218955
parent 16f72d88
2014-12-19 Kai Tietz <ktietz@redhat.com>
PR c++/61198
* pt.c (most_general_template): Don't break for template-alias.
2014-12-18 Jason Merrill <jason@redhat.com> 2014-12-18 Jason Merrill <jason@redhat.com>
PR c++/64105 PR c++/64105
......
...@@ -19207,6 +19207,7 @@ most_general_template (tree decl) ...@@ -19207,6 +19207,7 @@ most_general_template (tree decl)
break; break;
if (CLASS_TYPE_P (TREE_TYPE (decl)) if (CLASS_TYPE_P (TREE_TYPE (decl))
&& !TYPE_DECL_ALIAS_P (TYPE_NAME (TREE_TYPE (decl)))
&& CLASSTYPE_TEMPLATE_SPECIALIZATION (TREE_TYPE (decl))) && CLASSTYPE_TEMPLATE_SPECIALIZATION (TREE_TYPE (decl)))
break; break;
......
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