re PR c++/42697 (ice-on-legal-code: template class template function local objects)
authorDodji Seketeli <dodji@redhat.com>
Sun, 17 Jan 2010 10:24:16 +0000 (10:24 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Sun, 17 Jan 2010 10:24:16 +0000 (11:24 +0100)
commit4548cb4b83437e17e7392971ffcde82dacc59854
treed1b36373452b558ec08f6d1810d30ccf674a5f7d
parenta90110c3df1c1408e0a68d22a71b705a78680f6d
re PR c++/42697 (ice-on-legal-code: template class template function local objects)

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.

From-SVN: r155975
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash94.C [new file with mode: 0644]