This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Eliminate C++ keywords from the CP directory
- From: Ian Lance Taylor <iant at google dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Jul 2008 08:41:55 -0700
- Subject: Re: [PATCH]: Eliminate C++ keywords from the CP directory
- References: <Pine.GSO.4.58.0807170121310.4497@caipclassic.rutgers.edu>
"Kaveh R. GHAZI" <ghazi@caip.rutgers.edu> writes:
> 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * cvt.c (convert_to_void): Avoid C++ keywords.
> * decl.c (walk_namespaces_r, wrapup_globals_for_namespace):
> Likewise.
> * friend.c (is_friend): Likewise.
> * init.c (perform_member_init): Likewise.
> * mangle.c (write_template_prefix, write_template_template_param):
> Likewise.
> * name-lookup.c (do_namespace_alias, do_using_directive,
> parse_using_directive, ambiguous_decl, arg_assoc): Likewise.
> * parser.c (cp_parser_template_id, cp_parser_namespace_definition,
> cp_parser_objc_typename, cp_parser_objc_method_keyword_params):
> Likewise.
> * pt.c (is_specialization_of_friend, lookup_template_class,
> push_tinst_level, instantiate_class_template,
> tsubst_copy_and_build): Likewise.
> * tree.c (add_stmt_to_compound): Likewise.
> * typeck.c (finish_class_member_access_expr): Likewise.
This is OK.
> diff -rup orig/egcc-SVN20080716/gcc/cp/parser.c egcc-SVN20080716/gcc/cp/parser.c
> --- orig/egcc-SVN20080716/gcc/cp/parser.c 2008-07-12 02:00:42.000000000 +0200
> +++ egcc-SVN20080716/gcc/cp/parser.c 2008-07-16 21:15:24.000000000 +0200
> @@ -9945,14 +9945,14 @@ cp_parser_template_id (cp_parser *parser
> /* Parse the template-name. */
> is_identifier = false;
> token = cp_lexer_peek_token (parser->lexer);
> - template = cp_parser_template_name (parser, template_keyword_p,
> + templ = cp_parser_template_name (parser, template_keyword_p,
> check_dependency_p,
> is_declaration,
> &is_identifier);
Indentation needs fixing, I think.
Thanks.
Ian