re PR c++/51852 ([c++11] tree check: expected tree_list, have HßèMÕþÿøtxøtsø)
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Jan 2012 17:55:55 +0000 (18:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Jan 2012 17:55:55 +0000 (18:55 +0100)
commit8c71382973462c5ac36e8740c692066020eedfe8
tree92e5f8bacf9bdb2f6ac158d2aa92116d627ca228
parentb6c71f7771d82ff77e7ab4b622e93e3b83ffe429
re PR c++/51852 ([c++11] tree check: expected tree_list, have HßèMÕþÿøtxøtsø)

PR c++/51852
* pt.c (tsubst_pack_expansion): Delete and restore
local_specialization whenever need_local_specialization, not just
when saved_local_specializations is non-NULL.

* g++.dg/other/gc5.C: New test.

From-SVN: r183637
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/gc5.C [new file with mode: 0644]