http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51289
--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-12-09 18:12:53 UTC --- Author: dodji Date: Fri Dec 9 18:12:45 2011 New Revision: 182170 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182170 Log: PR c++/51289 - ICE with alias template for bound template template parm gcc/cp/ PR c++/51289 * cp-tree.h (TYPE_TEMPLATE_INFO): Rewrite this accessor macro to better support aliased types. (TYPE_ALIAS_P): Don't crash on TYPE_NAME nodes that are not TYPE_DECL. * pt.c (find_parameter_packs_r): Handle types aliases. (push_template_decl_real): Check for bare parameter packs in the underlying type of an alias template. gcc/PR51289/gcc/testsuite/ PR c++/51289 * g++.dg/cpp0x/alias-decl-17.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-17.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog