aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2013-06-06 13:57:44 -0400
committerJason Merrill <jason@gcc.gnu.org>2013-06-06 13:57:44 -0400
commita5aef1da0052e24721b35eb4581940fa01557b92 (patch)
tree7f2fb430f1d500605c9a195d5d2a2cff9eb6309c
parent6ab3ebb4937635034260c5c0527cd221a8ff16f7 (diff)
downloadgcc-a5aef1da0052e24721b35eb4581940fa01557b92.zip
gcc-a5aef1da0052e24721b35eb4581940fa01557b92.tar.gz
gcc-a5aef1da0052e24721b35eb4581940fa01557b92.tar.bz2
comment tweaks
From-SVN: r199750
-rw-r--r--gcc/cp/cp-tree.h5
-rw-r--r--gcc/cp/parser.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 8be1077..9421822 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 dfeeb0a..319da21 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)