]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/parser.c
re PR c++/19030 (ice on tree check)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 5 Jan 2005 10:02:35 +0000 (10:02 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 5 Jan 2005 10:02:35 +0000 (10:02 +0000)
commit4514aa8c6728182bf47343a8acbcec44e326f78e
tree125c8a7510120f2b97f1db6304937bded22e622d
parentc2b43d7ab2ebe17d1f68e1ba4aa99c7d5a1c06aa
re PR c++/19030 (ice on tree check)

cp:
PR c++/19030
* cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
* name-lookup.h (push_scope): Return pushed scope, not flag.
* name-lookup.c (push_scope): Return scope that should be popped,
not a flag.
* decl.c (start_decl): Adjust.
(grokfndecl): Adjust scope push and pop.
* decl2.c (check_classfn): Likewise.
* parser.c (cp_parser_condition, cp_parser_conversion_function_id,
cp_parser_init_declarator, cp_parser_direct_declarator,
cp_parser_class_specifier, cp_parser_class_head,
cp_parser_lookup_name,
cp_parser_constructor_declarator_p): Likewise.
* pt.c (instantiate_class_template,
resolve_typename_type): Likewise.
testsuite:
PR c++/19030
* g++.dg/parse/crash22.C: New

From-SVN: r92946
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash22.C [new file with mode: 0644]