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
This commit is contained in:
Kai Tietz 2014-12-19 17:44:15 +01:00 committed by Kai Tietz
parent 16f72d88dd
commit b00f4f15c1
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
PR c++/64105

View File

@ -19207,6 +19207,7 @@ most_general_template (tree decl)
break;
if (CLASS_TYPE_P (TREE_TYPE (decl))
&& !TYPE_DECL_ALIAS_P (TYPE_NAME (TREE_TYPE (decl)))
&& CLASSTYPE_TEMPLATE_SPECIALIZATION (TREE_TYPE (decl)))
break;