re PR c++/34272 (ICE with invalid template specialization)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 11 May 2010 20:53:36 +0000 (20:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 May 2010 20:53:36 +0000 (20:53 +0000)
commitaac73a6d780c14db68e6b60e2c61e84db45730c0
tree040db5f6dc7e26684be2b811a89480533f592ff5
parent9d000e830050e5157a159b531c1f6a564e7fff29
re PR c++/34272 (ICE with invalid template specialization)

/cp
2010-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/34272
PR c++/43630
PR c++/34491
* pt.c (process_partial_specialization): Return error_mark_node
in case of unused template parameters in partial specialization.

/testsuite
2010-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/34272
PR c++/43630
PR c++/34491
* g++.dg/template/crash97.C: New.
* g++.dg/template/crash98.C: Likewise.
* g++.dg/template/crash99.C: Likewise.
* g++.dg/cpp0x/pr31439.C: Adjust.
* g++.dg/template/crash95.C: Likewise.

From-SVN: r159295
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr31439.C
gcc/testsuite/g++.dg/template/crash95.C
gcc/testsuite/g++.dg/template/crash97.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash98.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash99.C [new file with mode: 0644]