re PR c++/28025 (multiple template friend compile error)
authorMark Mitchell <mark@codesourcery.com>
Sun, 23 Jul 2006 20:28:26 +0000 (20:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 23 Jul 2006 20:28:26 +0000 (20:28 +0000)
commit105d72c5950000e4215865bd2acef5e963a608dc
tree6530c82a3bb6524b265d975b0455ba9de9f3d1af
parent74e55d0f8f791d71aa4ac10215126e74277177d1
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend45.C [new file with mode: 0644]