OSDN Git Service

Fix PR c++/42697
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Jan 2010 10:24:16 +0000 (10:24 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Jan 2010 10:24:16 +0000 (10:24 +0000)
commitf7fb17aeea91c8456b3d523de017c6a583fe5d79
treed1b36373452b558ec08f6d1810d30ccf674a5f7d
parent40dbcb16da5ec49099c627c8b9eaddbab1dc22d7
Fix PR c++/42697

gcc/cp/ChangeLog:
PR c++/42697
*pt.c (tsubst_decl): Get the arguments of a specialization from
the specialization template, not from the most general template.

gcc/testsuite/ChangeLog:
PR c++/42697
* g++.dg/template/crash94.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155975 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash94.C [new file with mode: 0644]