re PR c++/37650 (ICE with broken default template parameter)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 14 Oct 2008 17:51:55 +0000 (17:51 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 14 Oct 2008 17:51:55 +0000 (17:51 +0000)
commitb17c40be653fc91102da14682785dfa97ec0f9c0
tree4d9733ef67af48d5098d4835438915c1bd65c39e
parentc841843f9ec213349ecfdf80b0e1a0a6e9b1872a
re PR c++/37650 (ICE with broken default template parameter)

/cp
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/37650
* pt.c (push_template_decl_real): Check that current_template_parms
is not null.
(process_partial_specialization): Assert current_template_parms not
null.

/testsuite
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/37650
* g++.dg/template/crash83.C: New.

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