re PR c++/55542 (g++ segmentation fault)
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Nov 2012 23:51:26 +0000 (00:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Nov 2012 23:51:26 +0000 (00:51 +0100)
commit55ad8d77abea762498975abf81dc029a97957a6d
treea0ef3b6ff2f660c06b70a91f3292e1ca083c90b9
parenta37d67b62172f4835d32a83bf54c8c1b4d171271
re PR c++/55542 (g++ segmentation fault)

PR c++/55542
* pt.c (make_ith_pack_parameter_name): Return NULL if
name is NULL.
(tsubst_decl): Call make_ith_pack_parameter_name even if
DECL_NAME is NULL.

* g++.dg/cpp0x/vt-55542.C: New test.

From-SVN: r194010
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/vt-55542.C [new file with mode: 0644]