* pt.c, tree.c, typeck2.c: Fix comment typos.
authorKazu Hirata <kazu@codesourcery.com>
Sat, 28 Jul 2007 23:59:29 +0000 (23:59 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 28 Jul 2007 23:59:29 +0000 (23:59 +0000)
From-SVN: r127031

gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck2.c

index 57c1e413fd24166bc69e33ecc8402e42be85fc4c..860a80a7bb0cfa44f6171c9c251192d6440811db 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
+
+       * pt.c, tree.c, typeck2.c: Fix comment typos.
+
 2007-07-28  Simon Martin  <simartin@users.sourceforge.net>
            Mark Mitchell  <mark@codesourcery.com>
 
index d05bfd29e37f7d994ab33a605860ba18bc5a2219..13a2deb40c56770085f62cf4ff78038d84c34828 100644 (file)
@@ -2213,7 +2213,7 @@ check_explicit_specialization (tree declarator,
               tree tmpl_func = DECL_TEMPLATE_RESULT (gen_tmpl);
               gcc_assert (TREE_CODE (tmpl_func) == FUNCTION_DECL);
 
-              /* This specialization has the same linkage and visiblity as
+              /* This specialization has the same linkage and visibility as
                  the function template it specializes.  */
               TREE_PUBLIC (decl) = TREE_PUBLIC (tmpl_func);
               DECL_THIS_STATIC (decl) = DECL_THIS_STATIC (tmpl_func);
@@ -4637,7 +4637,7 @@ convert_template_argument (tree parm,
   requires_type = (TREE_CODE (parm) == TYPE_DECL
                   || requires_tmpl_type);
 
-  /* When determining whether a argument pack expansion is a template,
+  /* When determining whether an argument pack expansion is a template,
      look at the pattern.  */
   if (TREE_CODE (check_arg) == TYPE_PACK_EXPANSION)
     check_arg = PACK_EXPANSION_PATTERN (check_arg);
index 97573638a8fb619dda8d12d290b67a65b1eca040..8417703d0e022fd96557fe309bef700036cd24e6 100644 (file)
@@ -83,7 +83,7 @@ lvalue_p_1 (tree ref,
          && TREE_CODE (ref) != COMPONENT_REF)
        return clk_none;
 
-      /* lvalue references and named rvalue refences are lvalues */
+      /* lvalue references and named rvalue references are lvalues.  */
       return clk_ordinary;
     }
 
index 10f410c8ea863635334069252fc2ae0f4dde05e2..7f05e10905a4ddf326a159e04d896f3274e6f84c 100644 (file)
@@ -764,8 +764,8 @@ picflag_from_initializer (tree init)
 }
 
 /* Subroutine of process_init_constructor, which will process an initializer
-   INIT for a array or vector of type TYPE. Returns the flags (PICFLAG_*) which
-   describe the initializers.  */
+   INIT for an array or vector of type TYPE. Returns the flags (PICFLAG_*)
+   which describe the initializers.  */
 
 static int
 process_init_constructor_array (tree type, tree init)