OSDN Git Service

PR c++/51289 - ICE with alias template for bound template template parm
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 18:12:45 +0000 (18:12 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 18:12:45 +0000 (18:12 +0000)
commita25f8869d0bffb0ba81e69f031c206c197305036
treec93242d247ad65c273360bbd6a3e8c3ee1cac04e
parent64cd6492011fed84690a154257e11f0464859eb0
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182170 138bc75d-0d04-0410-961f-82ee72b054a4
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]