aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2006-07-23 20:28:26 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2006-07-23 20:28:26 +0000
commit105d72c5950000e4215865bd2acef5e963a608dc (patch)
tree6530c82a3bb6524b265d975b0455ba9de9f3d1af /gcc/cp/semantics.c
parent74e55d0f8f791d71aa4ac10215126e74277177d1 (diff)
downloadgcc-105d72c5950000e4215865bd2acef5e963a608dc.zip
gcc-105d72c5950000e4215865bd2acef5e963a608dc.tar.gz
gcc-105d72c5950000e4215865bd2acef5e963a608dc.tar.bz2
re PR c++/28025 (multiple template friend compile error)
PR c++/28025 * cp-tree.h (LOOKUP_HIDDEN): New macro. Reformat comments. * name-lookup.c (unqualified_namespace_lookup): There is no way to have a hidden name in non-namespace scopes. * pt.c (tsubst_friend_class): Look for hidden names. * decl.c (lookup_and_check_tag): Fix typo in comment. * semantics.c (finish_compound_literal): Fix typo in comment. PR c++/28025 * g++.dg/template/friend45.C: New test. From-SVN: r115687
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index c739d61..e96ba68 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2058,7 +2058,7 @@ finish_compound_literal (tree type, VEC(constructor_elt,gc) *initializer_list)
DECL_NAME (var) = make_anon_name ();
}
/* We must call pushdecl, since the gimplifier complains if the
- variable hase been declared via a BIND_EXPR. */
+ variable has not been declared via a BIND_EXPR. */
pushdecl (var);
/* Initialize the variable as we would any other variable with a
brace-enclosed initializer. */