re PR c++/20789 (ICE with incomplete type in template)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 13 Jun 2005 15:58:10 +0000 (15:58 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 13 Jun 2005 15:58:10 +0000 (15:58 +0000)
commit8fe4d24bebd6df659ab43ad5dd065a29c473f815
tree80df738d7463c3986a421395691d3add01541ee2
parent56fc483e31987c2936dfee9e141702c848da7a50
re PR c++/20789 (ICE with incomplete type in template)

cp:
PR c++/20789
* decl.c (cp_finish_decl): Clear runtime runtime initialization if
in-class decl's initializer is bad.

PR c++/21929
* parser.c (struct cp_parser): Document that scope could be
error_mark.
(cp_parser_diagnose_invalid_type_name): Cope with error_mark for
scope.
(cp_parser_nested_name_specifier): Return NULL_TREE on error.
(cp_parser_postfix_expression): Deal with null or error_mark
scope.
(cp_parser_elaborated_type_specifier): Adjust
cp_parser_nested_name_specifier call.

* parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
testsuite:
PR c++/21929
* g++.dg/parse/crash26.C: New.

PR c++/20789
* g++.dg/init/member1.C: New.

From-SVN: r100880
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/member1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash26.C [new file with mode: 0644]