Commit 852dcbdd by Kazu Hirata Committed by Kazu Hirata

class.c: Fix comment typos.

	* class.c: Fix comment typos.
	* decl.c: Likewise.
	* error.c: Likewise.
	* parser.c: Likewise.
	* pt.c: Likewise.
	* search.c: Likewise.
	* typeck.c: Likewise.

From-SVN: r77045
parent 8de63ee0
2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
* class.c: Fix comment typos.
* decl.c: Likewise.
* error.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* search.c: Likewise.
* typeck.c: Likewise.
2004-01-30 Richard Henderson <rth@redhat.com> 2004-01-30 Richard Henderson <rth@redhat.com>
PR c++/13693 PR c++/13693
......
...@@ -1197,7 +1197,7 @@ handle_using_decl (tree using_decl, tree t) ...@@ -1197,7 +1197,7 @@ handle_using_decl (tree using_decl, tree t)
alter_access (t, fdecl, access); alter_access (t, fdecl, access);
} }
/* Run through the base clases of T, updating /* Run through the base classes of T, updating
CANT_HAVE_DEFAULT_CTOR_P, CANT_HAVE_CONST_CTOR_P, and CANT_HAVE_DEFAULT_CTOR_P, CANT_HAVE_CONST_CTOR_P, and
NO_CONST_ASN_REF_P. Also set flag bits in T based on properties of NO_CONST_ASN_REF_P. Also set flag bits in T based on properties of
the bases. */ the bases. */
......
...@@ -6008,7 +6008,7 @@ check_static_variable_definition (tree decl, tree type) ...@@ -6008,7 +6008,7 @@ check_static_variable_definition (tree decl, tree type)
error ("invalid in-class initialization of static data member of non-integral type `%T'", error ("invalid in-class initialization of static data member of non-integral type `%T'",
type); type);
/* If we just return the declaration, crashes will sometimes /* If we just return the declaration, crashes will sometimes
occur. We therefore return void_type_node, as if this was a occur. We therefore return void_type_node, as if this were a
friend declaration, to cause callers to completely ignore friend declaration, to cause callers to completely ignore
this declaration. */ this declaration. */
return 1; return 1;
......
...@@ -941,7 +941,7 @@ dump_decl (tree t, int flags) ...@@ -941,7 +941,7 @@ dump_decl (tree t, int flags)
default: default:
pp_unsupported_tree (cxx_pp, t); pp_unsupported_tree (cxx_pp, t);
/* Fallthrough to error. */ /* Fall through to error. */
case ERROR_MARK: case ERROR_MARK:
pp_identifier (cxx_pp, "<declaration error>"); pp_identifier (cxx_pp, "<declaration error>");
......
...@@ -1065,7 +1065,7 @@ typedef enum cp_parser_flags ...@@ -1065,7 +1065,7 @@ typedef enum cp_parser_flags
typedef enum cp_parser_declarator_kind typedef enum cp_parser_declarator_kind
{ {
/* We want an abstract declartor. */ /* We want an abstract declarator. */
CP_PARSER_DECLARATOR_ABSTRACT, CP_PARSER_DECLARATOR_ABSTRACT,
/* We want a named declarator. */ /* We want a named declarator. */
CP_PARSER_DECLARATOR_NAMED, CP_PARSER_DECLARATOR_NAMED,
...@@ -12791,7 +12791,7 @@ cp_parser_base_specifier (cp_parser* parser) ...@@ -12791,7 +12791,7 @@ cp_parser_base_specifier (cp_parser* parser)
break; break;
} }
} }
/* It is not uncommon to see programs mechanically, errouneously, use /* It is not uncommon to see programs mechanically, erroneously, use
the 'typename' keyword to denote (dependent) qualified types the 'typename' keyword to denote (dependent) qualified types
as base classes. */ as base classes. */
if (cp_lexer_next_token_is_keyword (parser->lexer, RID_TYPENAME)) if (cp_lexer_next_token_is_keyword (parser->lexer, RID_TYPENAME))
...@@ -15050,7 +15050,7 @@ cp_parser_pre_parsed_nested_name_specifier (cp_parser *parser) ...@@ -15050,7 +15050,7 @@ cp_parser_pre_parsed_nested_name_specifier (cp_parser *parser)
parser->object_scope = NULL_TREE; parser->object_scope = NULL_TREE;
} }
/* Add tokens to CACHE until an non-nested END token appears. */ /* Add tokens to CACHE until a non-nested END token appears. */
static void static void
cp_parser_cache_group (cp_parser *parser, cp_parser_cache_group (cp_parser *parser,
......
...@@ -1092,7 +1092,7 @@ register_specialization (tree spec, tree tmpl, tree args) ...@@ -1092,7 +1092,7 @@ register_specialization (tree spec, tree tmpl, tree args)
If there was a definition for the template, but If there was a definition for the template, but
not for the specialization, we want this to not for the specialization, we want this to
look as if there is no definition, and vice look as if there were no definition, and vice
versa. */ versa. */
DECL_INITIAL (fn) = NULL_TREE; DECL_INITIAL (fn) = NULL_TREE;
duplicate_decls (spec, fn); duplicate_decls (spec, fn);
...@@ -8036,7 +8036,7 @@ tsubst_copy_and_build (tree t, ...@@ -8036,7 +8036,7 @@ tsubst_copy_and_build (tree t,
{ {
case USING_DECL: case USING_DECL:
t = DECL_NAME (t); t = DECL_NAME (t);
/* Fallthrough. */ /* Fall through. */
case IDENTIFIER_NODE: case IDENTIFIER_NODE:
{ {
tree decl; tree decl;
......
...@@ -210,7 +210,7 @@ lookup_base_r (tree binfo, tree base, base_access access, ...@@ -210,7 +210,7 @@ lookup_base_r (tree binfo, tree base, base_access access,
case bk_same_type: case bk_same_type:
bk = bk_proper_base; bk = bk_proper_base;
/* FALLTHROUGH */ /* Fall through. */
case bk_proper_base: case bk_proper_base:
my_friendly_assert (found == bk_not_base, 20010723); my_friendly_assert (found == bk_not_base, 20010723);
found = bk; found = bk;
......
...@@ -5477,7 +5477,7 @@ build_ptrmemfunc (tree type, tree pfn, int force) ...@@ -5477,7 +5477,7 @@ build_ptrmemfunc (tree type, tree pfn, int force)
given by CST. given by CST.
??? There is no consistency as to the types returned for the above ??? There is no consistency as to the types returned for the above
values. Some code acts as if its a sizetype and some as if its values. Some code acts as if it were a sizetype and some as if it were
integer_type_node. */ integer_type_node. */
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment