re PR c++/66067 (tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_temp...
authorJason Merrill <jason@redhat.com>
Fri, 26 Jun 2015 20:33:41 +0000 (16:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 26 Jun 2015 20:33:41 +0000 (16:33 -0400)
commitd15364ce85d30212914ad79f624e9d2236a9be64
treee95d665c543b8b6186eed2d1e94cc2f44fa8c0b6
parent7457279bae2d1ba50848d95f5b927a599e194646
re PR c++/66067 (tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574)

PR c++/66067
* mangle.c (write_nested_name): Limit TYPENAME_TYPE handling to
TYPE_DECLs.
* mangle.c (write_template_args): Handle 0 length TREE_VEC.

From-SVN: r225083
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/g++.dg/abi/mangle66.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/alias-decl-50.C [new file with mode: 0644]