mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
16f72d88dd
commit
b00f4f15c1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue