From 509fc2779a4604d1d715b4c41008d98b3f963a26 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 5 Oct 2000 08:41:44 +0000 Subject: [PATCH] cp-tree.h (access_kind): Fix comment typo. * cp-tree.h (access_kind): Fix comment typo. * decl2.c (grokfield): Fix diagnostic typo. * semantics.c (finish_template_type): Fix comment typo. (finish_qualified_object_call_expr): Likewise. From-SVN: r36722 --- gcc/cp/ChangeLog | 7 +++++++ gcc/cp/cp-tree.h | 2 +- gcc/cp/decl2.c | 2 +- gcc/cp/semantics.c | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 960f17d0309..34389c50c9c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2000-10-05 Nathan Sidwell + + * cp-tree.h (access_kind): Fix comment typo. + * decl2.c (grokfield): Fix diagnostic typo. + * semantics.c (finish_template_type): Fix comment typo. + (finish_qualified_object_call_expr): Likewise. + 2000-10-05 Nathan Sidwell * pt.c (tsubst_expr, DECL_STMT case): Don't process if diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 2516e89532a..1156495f22b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3126,7 +3126,7 @@ typedef enum tmpl_spec_kind { /* The various kinds of access. BINFO_ACCESS depends on these being two bit quantities. The numerical values are important; they are - used to initialize RTTI data structures, so chaning them changes + used to initialize RTTI data structures, so changing them changes the ABI. */ typedef enum access_kind { ak_none = 0, /* Inaccessible. */ diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a9dc4132fa3..42493ade77f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1652,7 +1652,7 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist) Explain that to the user. */ static int explained; - cp_error ("invalid data member initiailization"); + cp_error ("invalid data member initialization"); if (!explained) { cp_error ("(use `=' to initialize static data members)"); diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 2f4432f5a18..5c5756775e8 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1430,7 +1430,7 @@ finish_object_call_expr (fn, object, args) } /* Finish a qualified member function call using OBJECT and ARGS as - arguments to FN. Returns an expressino for the call. */ + arguments to FN. Returns an expression for the call. */ tree finish_qualified_object_call_expr (fn, object, args) @@ -2007,7 +2007,7 @@ finish_template_decl (parms) end_specialization (); } -/* Finish processing a a template-id (which names a type) of the form +/* Finish processing a template-id (which names a type) of the form NAME < ARGS >. Return the TYPE_DECL for the type named by the template-id. If ENTERING_SCOPE is non-zero we are about to enter the scope of template-id indicated. */ -- 2.30.2