class.c, [...]: Fix comment typos.
authorKazu Hirata <kazu@codesourcery.com>
Mon, 1 Aug 2005 04:02:26 +0000 (04:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 1 Aug 2005 04:02:26 +0000 (04:02 +0000)
* class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
Fix comment typos.

From-SVN: r102621

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/cp/typeck2.c

index 0e0c9e6201c6744019c80ef62fb6fdff2089b48d..061ab2fa1c725dda4c084f15f4096d89f00d308d 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
+
+       * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
+       Fix comment typos.
+
 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
 
        * method.c: Fix a comment typo.
index c069d5fdbeb62c9950eb67d9bc7ec1d8b3bb8b29..4d57a73c41da827e645b03be37fa15bb42d1df12 100644 (file)
@@ -5545,7 +5545,7 @@ pop_lang_context (void)
 
 /* Given an OVERLOAD and a TARGET_TYPE, return the function that
    matches the TARGET_TYPE.  If there is no satisfactory match, return
-   error_mark_node, and issue a error & warning messages under control
+   error_mark_node, and issue an error & warning messages under control
    of FLAGS.  Permit pointers to member function if FLAGS permits.  If
    TEMPLATE_ONLY, the name of the overloaded function was a
    template-id, and EXPLICIT_TARGS are the explicitly provided
index ddcab2e0fed21ffcd19c496a9a8451a82b4da722..99a18301c1af9e96b7d8ccdc8ec9929c1929a4a8 100644 (file)
@@ -2830,7 +2830,7 @@ record_unknown_type (tree type, const char* name)
   TYPE_MODE (type) = TYPE_MODE (void_type_node);
 }
 
-/* An string for which we should create an IDENTIFIER_NODE at
+/* A string for which we should create an IDENTIFIER_NODE at
    startup.  */
 
 typedef struct predefined_identifier
index 3d49f90566065788b9c2de37a19b81d8b0019bf5..a4c33a31de27def6d48f58f2336913707e7f1911 100644 (file)
@@ -3966,7 +3966,7 @@ lookup_name (tree name, int prefer_type)
    Unlike lookup_name_real, we make sure that NAME is actually
    declared in the desired scope, not from inheritance, nor using
    directive.  For using declaration, there is DR138 still waiting
-   to be resolved.  Hidden name coming from earlier an friend
+   to be resolved.  Hidden name coming from an earlier friend
    declaration is also returned.
 
    A TYPE_DECL best matching the NAME is returned.  Catching error
index 3403e8bf2d1be1192893eee482526db2cd290285..cc3c03e7fe93f5ffdd7343e9087b4a74bc70eb9c 100644 (file)
@@ -642,7 +642,7 @@ end_explicit_instantiation (void)
   processing_explicit_instantiation = false;
 }
 
-/* A explicit specialization or partial specialization TMPL is being
+/* An explicit specialization or partial specialization TMPL is being
    declared.  Check that the namespace in which the specialization is
    occurring is permissible.  Returns false iff it is invalid to
    specialize TMPL in the current namespace.  */
index 62f52973ebae5cda394853ec28c8e8da2d20bfdf..18d5bb603078b967d01a922a9e09252c35132c58 100644 (file)
@@ -3764,7 +3764,7 @@ build_unary_op (enum tree_code code, tree xarg, int noconvert)
            if (!noconvert && CP_INTEGRAL_TYPE_P (TREE_TYPE (arg)))
              arg = perform_integral_promotions (arg);
 
-           /* Make sure the result is not a lvalue: a unary plus or minus
+           /* Make sure the result is not an lvalue: a unary plus or minus
               expression is always a rvalue.  */
            if (real_lvalue_p (arg))
              arg = build1 (NON_LVALUE_EXPR, TREE_TYPE (arg), arg);
index 2564a0547684271a98215c4dc7c7fd07c633013d..e9a61614f71a233d8bf46a4287a9650166e3db2b 100644 (file)
@@ -945,7 +945,7 @@ process_init_constructor_record (tree type, tree init)
 }
 
 /* Subroutine of process_init_constructor, which will process a single
-   initializer INIT for an union of type TYPE. Returns the flags (PICFLAG_*)
+   initializer INIT for a union of type TYPE. Returns the flags (PICFLAG_*)
    which describe the initializer.  */
 
 static int