From: Kai Tietz Date: Fri, 19 Dec 2014 16:44:15 +0000 (+0100) Subject: re PR c++/61198 (Crash when selecting specializations through aliases.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b00f4f15c1d592a3d00c6a1d3bc8d9f01baead36;p=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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 823f0864229..7fcad878af7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2014-12-19 Kai Tietz + + PR c++/61198 + * pt.c (most_general_template): Don't break for template-alias. + 2014-12-18 Jason Merrill PR c++/64105 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2a63a2e1bca..15d304af635 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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;