From a5aef1da0052e24721b35eb4581940fa01557b92 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 6 Jun 2013 13:57:44 -0400 Subject: [PATCH] comment tweaks From-SVN: r199750 --- gcc/cp/cp-tree.h | 5 ++++- gcc/cp/parser.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 8be1077c99c..9421822ca7b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2737,7 +2737,10 @@ extern void decl_shadowed_for_var_insert (tree, tree); : TREE_VEC_LENGTH (INNERMOST_TEMPLATE_ARGS (NODE)) #endif /* The list of typedefs - used in the template - that need - access checking at template instantiation time. */ + access checking at template instantiation time. + + FIXME this should be associated with the TEMPLATE_DECL, not the + TEMPLATE_INFO. */ #define TI_TYPEDEFS_NEEDING_ACCESS_CHECKING(NODE) \ ((struct tree_template_info*)TEMPLATE_INFO_CHECK \ (NODE))->typedefs_needing_access_checking diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index dfeeb0a94c2..319da218356 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -17783,7 +17783,7 @@ cp_parser_parameter_declaration_list (cp_parser* parser, bool *is_error) && !parser->in_type_id_in_expr_p && cp_parser_uncommitted_to_tentative_parse_p (parser) /* However, a parameter-declaration of the form - "foat(f)" (which is a valid declaration of a + "float(f)" (which is a valid declaration of a parameter "f") can also be interpreted as an expression (the conversion of "f" to "float"). */ && !parenthesized_p) -- 2.30.2