]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
re PR c++/9388 ([new parser] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2...
authorMark Mitchell <mark@codesourcery.com>
Wed, 22 Jan 2003 17:39:15 +0000 (17:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Jan 2003 17:39:15 +0000 (17:39 +0000)
commit1fb3244aad216c693e0d90f693b2ff4797b4cb63
tree7aaeb0692ae8031ae332889f9c66fc242dcf778b
parent4888ec5d53eb1207f199f6dd6c152abb61ec9258
re PR c++/9388 ([new parser] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:278)

PR c++/9388
* class.c (currently_open_derived_class): Use dependent_type_p.
* cp-tree.h (dependent_type_p): New function.
(dependent_template_arg_p): Likewise.
(dependent_template_p): Likewise.
(type_dependent_expression_p): Likewise.
* parser.c (cp_parser_dependent_type_p): Remove.
(cp_parser_value_dependent_type_p): Likewise.
(cp_parser_type_dependent_expression_p): Likewise.
(cp_parser_dependent_template_arg_p): Likewise.
(cp_parser_dependent_template_id_p): Likewise.
(cp_parser_dependent_template_p): Likewise.
(cp_parser_diagnose_invalid_type_name): Replace
cp_parser_dependent_type_p with dependent_type_p, etc.
(cp_parser_primary_expresion): Likewise.
(cp_parser_nested_name_specifier_opt): Likewise.
(cp_parser_postfix_expression): Likewise.
(cp_parser_unary_expression): Likewise.
(cp_parser_template_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_parser_lookup_name): Likewise.
* pt.c (dependent_type_p): New function.
(value_dependent_expression_p): Likewise.
(type_dependent_expression_p): Likewise.
(dependent_template_arg_p): Likewise.
(dependent_template_id_p): Likewise.
(dependent_template_p): Likewise.

PR c++/9285
PR c++/9294
* parser.c (cp_parser_simple_declaration):

PR c++/9285
PR c++/9294
* g++.dg/parse/expr2.C: New test.

PR c++/9388
* g++.dg/parse/lookup2.C: Likewise.

From-SVN: r61596
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/expr2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/lookup2.C [new file with mode: 0644]