diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-03-17 17:29:11 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-03-17 17:29:11 +0000 |
commit | a757b5c594279e7e3a4a51bf5748dbd0785a3fbc (patch) | |
tree | 61fdb444939363737d122ef49f18d87d72a6804a /gcc | |
parent | c492dc9a666e438ca8bbd2052482e8c30d8b5019 (diff) | |
download | gcc-a757b5c594279e7e3a4a51bf5748dbd0785a3fbc.zip gcc-a757b5c594279e7e3a4a51bf5748dbd0785a3fbc.tar.gz gcc-a757b5c594279e7e3a4a51bf5748dbd0785a3fbc.tar.bz2 |
* cp-tree.def, parser.c, pt.c: Fix comment typos.
From-SVN: r123024
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/cp-tree.def | 2 | ||||
-rw-r--r-- | gcc/cp/parser.c | 4 | ||||
-rw-r--r-- | gcc/cp/pt.c | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f5d26c0..b465308 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-03-17 Kazu Hirata <kazu@codesourcery.com> + + * cp-tree.def, parser.c, pt.c: Fix comment typos. + 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * cvt.c (cp_convert_and_check) : Define. diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 83e1e53..a2a0c03 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -367,7 +367,7 @@ DEFTREECODE (STATIC_ASSERT, "static_assert", tcc_exceptional, 0) Values is a (template) parameter pack. When tuple<int, float, double> is instantiated, the Values parameter pack is instantiated - with the argment pack <int, float, double>. ARGUMENT_PACK_ARGS will + with the argument pack <int, float, double>. ARGUMENT_PACK_ARGS will be a TREE_VEC containing int, float, and double. */ DEFTREECODE (TYPE_ARGUMENT_PACK, "type_argument_pack", tcc_type, 0) diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index e123047..2cf6f8a 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -4343,8 +4343,8 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p, bool cast_p) allowed in standard C++. */ if (pedantic) pedwarn ("ISO C++ forbids compound-literals"); - /* For simplicitly, we disallow compound literals in - constant-expressions for simpliicitly. We could + /* For simplicity, we disallow compound literals in + constant-expressions. We could allow compound literals of integer type, whose initializer was a constant, in constant expressions. Permitting that usage, as a further diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2546ab4..575057f 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -7677,7 +7677,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) /* If there is a local specialization that isn't a parameter pack, it means that we're doing a "simple" substitution from inside tsubst_pack_expansion. Just - return the local specialiation (which will be a single + return the local specialization (which will be a single parm). */ tree spec = NULL_TREE; if (local_specializations) |