]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/51289 - ICE with alias template for bound template template parm
authorDodji Seketeli <dodji@redhat.com>
Fri, 9 Dec 2011 18:12:45 +0000 (18:12 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 9 Dec 2011 18:12:45 +0000 (19:12 +0100)
commit60ef5d4e7fcf2789986bcf24e2db82dc0ef79bab
treec93242d247ad65c273360bbd6a3e8c3ee1cac04e
parent15ce64af29141facd203687d000e21fe6f877234
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.

From-SVN: r182170
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-17.C [new file with mode: 0644]