re PR c++/36404 (ICE with invalid enum)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 2 Jun 2008 21:27:35 +0000 (21:27 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Jun 2008 21:27:35 +0000 (21:27 +0000)
commit80d7287f402d124caef566cbcbe023ebfab62f28
tree93a216e648572fc1b8842353f4258bf6255db493
parentde9f679dbec4f6cf6503a1b9be1cf8cd8daf0f4b
re PR c++/36404 (ICE with invalid enum)

/cp
2008-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/36404
        * pt.c (push_template_decl_real): Consistently return error_mark_node
on error.

/testsuite
2008-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/36404
        * g++.dg/template/crash79.C: New.
* g++.dg/other/pr28114.C: Adjust.

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