OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 20:53:36 +0000 (20:53 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 20:53:36 +0000 (20:53 +0000)
commit2a70d82481f52e66da89406ec413b7d06137926f
tree040db5f6dc7e26684be2b811a89480533f592ff5
parentdd69036730e59dd0d2be1d6c7b46994707396573
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159295 138bc75d-0d04-0410-961f-82ee72b054a4
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]