re PR c++/10926 (ICE in build_delete when trying to declare template destructor)
commit89f1a6eccc670a5d41d7aa2e8bdbe5793d662eda
authorMark Mitchell <mark@codesourcery.com>
Tue, 16 Dec 2003 02:46:31 +0000 (16 02:46 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 16 Dec 2003 02:46:31 +0000 (16 02:46 +0000)
tree666879933d74c747ef939964a372c4a7812082cf
parent040fc928031ee65c0eeed2ed20e024179d02d9cf
re PR c++/10926 (ICE in build_delete when trying to declare template destructor)

PR c++/10926
* decl2.c (grokfield): Robustify.

PR c++/11116
* parser.c (cp_parser_throw_expression): Determine whether or not
an assignment-expression is present by doing one-token lookahead.

PR c++/10926
* g++.dg/template/error9.C: New test.

PR c++/11116
* g++.dg/template/error8.C: New test.

From-SVN: r74664
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error9.C [new file with mode: 0644]