diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-01-10 20:30:56 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-01-10 20:30:56 +0000 |
commit | 2050a1bbac14451de357a7d78ffdc6621f49ab30 (patch) | |
tree | 2cea45ec7f50f69c10cd2f4336195b5e297a14be /gcc/cp/cp-tree.h | |
parent | 0cdca92b467aa92deec2819ff65652b87af6f1ea (diff) | |
download | gcc-2050a1bbac14451de357a7d78ffdc6621f49ab30.zip gcc-2050a1bbac14451de357a7d78ffdc6621f49ab30.tar.gz gcc-2050a1bbac14451de357a7d78ffdc6621f49ab30.tar.bz2 |
re PR c++/9128 (Typeid does not work on polymorphic classes)
PR c++/9128
* g++.dg/rtti/typeid1.C: New file.
PR c++/9153
* g++.dg/parse/lookup1.C: New file.
PR c++/9171
* g++.dg/templ/spec5.C: New file.
* cp-tree.h (reparse_absdcl_as_expr): Remove.
(reparse_absdcl_as_casts): Likewise.
(reparse_decl_as_expr): Likewise.
(finish_decl_parsing): Likewise.
* decl2.c (reparse_absdcl_as_expr): Remove.
(reparse_absdcl_as_casts): Likewise.
(repase_decl_as_expr): Likewise.
(finish_decl_parsing): Likewise.
PR c++/9128
PR c++/9153
PR c++/9171
* parser.c (cp_parser_pre_parsed_nested_name_specifier): New
function.
(cp_parser_nested_name_specifier_opt): Correct the
check_dependency_p false.
(cp_parser_postfix_expression): Fix formatting.
(cp_parser_decl_specifier_seq): Avoid looking for constructor
declarators when possible.
(cp_parser_template_id): Avoid performing name-lookup when
possible.
(cp_parser_class_head): Do not count specializations when counting
levels of templates.
(cp_parser_constructor_declarator_p): Return immediately if
there's no chance that the tokens form a constructor declarator.
* rtti.c (throw_bad_typeid): Add comment. Do not return an
expression with reference type.
(get_tinfo_decl_dynamic): Do not return an expression with
reference type.
(build_typeid): Add comment. Do not return an expression with
reference type.
* typeck.c (build_class_member_access_expr): Improve handling of
conditionals and comma-expressions as objects.
From-SVN: r61166
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index aad82c0..46fd5b1 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3865,13 +3865,9 @@ extern void import_export_decl (tree); extern void import_export_tinfo (tree, tree, bool); extern tree build_cleanup PARAMS ((tree)); extern void finish_file PARAMS ((void)); -extern tree reparse_absdcl_as_expr PARAMS ((tree, tree)); -extern tree reparse_absdcl_as_casts PARAMS ((tree, tree)); extern tree build_expr_from_tree PARAMS ((tree)); extern tree build_offset_ref_call_from_tree (tree, tree); extern tree build_call_from_tree (tree, tree, bool); -extern tree reparse_decl_as_expr (tree, tree); -extern tree finish_decl_parsing (tree); extern void set_decl_namespace (tree, tree, bool); extern tree current_decl_namespace PARAMS ((void)); extern void push_decl_namespace PARAMS ((tree)); |