summaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-27 18:47:29 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-27 18:47:29 +0000
commit2c9f7d9e7611b4f46cf93a622a45099319a6b6c6 (patch)
treef168907d6971264e30582da13712e44bb016547b /gcc/cp/search.c
parent2fc802827f897add9fc5c688d96eb3ac7c49e15d (diff)
downloadgcc-2c9f7d9e7611b4f46cf93a622a45099319a6b6c6.tar.gz
PR c++/17585
* cp-tree.h (shared_member_p): Declare. * search.c (shared_member_p): Give it external linkage. * semantics.c (finish_qualified_id_expr): Use it. (finish_id_expression): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88188 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 96d273be195..47d08f34c74 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -56,7 +56,6 @@ static int lookup_conversions_r (tree, int, int,
tree, tree, tree, tree, tree *, tree *);
static int look_for_overrides_r (tree, tree);
static tree lookup_field_queue_p (tree, int, void *);
-static int shared_member_p (tree);
static tree lookup_field_r (tree, void *);
static tree dfs_accessible_queue_p (tree, int, void *);
static tree dfs_accessible_p (tree, void *);
@@ -1025,7 +1024,7 @@ template_self_reference_p (tree type, tree decl)
This function checks that T contains no nonstatic members. */
-static int
+int
shared_member_p (tree t)
{
if (TREE_CODE (t) == VAR_DECL || TREE_CODE (t) == TYPE_DECL \