]> gcc.gnu.org Git - gcc.git/commitdiff
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)
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


No differences found
This page took 0.124932 seconds and 5 git commands to generate.