]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/42697 (ice-on-legal-code: template class template function local objects)
authorDodji Seketeli <dodji@redhat.com>
Wed, 7 Apr 2010 15:16:12 +0000 (15:16 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Wed, 7 Apr 2010 15:16:12 +0000 (17:16 +0200)
commit5fd5c97a3458128c95577bbff190795f39e4cdfb
tree5855473c06cc1ce2175bfc2d88f39aee807e5c62
parent7c094c11510e9a7bb99a9b2b2dd4f6087cedda3c
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: r158068
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash94.C [new file with mode: 0644]