re PR c++/16716 (ICE in cp_parser_parse_and_diagnose_invalid_type_name)
authorMark Mitchell <mark@codesourcery.com>
Tue, 14 Sep 2004 00:29:03 +0000 (00:29 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 14 Sep 2004 00:29:03 +0000 (00:29 +0000)
commit3590f0a64a649dad84c2819a54226b5faf9fcb50
tree9e8aa45a4505b9e993c796f41e14d74020abf258
parent86620a426faae66239e1f483dabdb900dc8ae051
re PR c++/16716 (ICE in cp_parser_parse_and_diagnose_invalid_type_name)

PR c++/16716
* parser.c (cp_parser_parse_and_diagnose_invalid_type_name):
Robustify.

PR c++/17327
* pt.c (unify): Add ENUMERAL_TYPE case.  Replace sorry with
gcc_unreacable.

PR c++/16716
* g++.dg/parse/crash17.C: New test.

PR c++/17327
* g++.dg/template/enum3.C: New test.

From-SVN: r87467
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/enum3.C [new file with mode: 0644]