summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-19 02:53:39 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-19 02:53:39 +0000
commit879c467407fba78b0adf4fdeee6cd783d1600977 (patch)
tree75ce90883ba979945ab39bb0fb55549270cb01ef
parentd24f0471aa082ebd53d664c90ec54bb5ff950644 (diff)
downloadgcc-879c467407fba78b0adf4fdeee6cd783d1600977.tar.gz
tweak
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19860 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 2fdacd157fe..0d0fa8c8023 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -1472,6 +1472,8 @@ build_member_call (type, name, parmlist)
if (TREE_CODE (name) == TEMPLATE_ID_EXPR
&& TREE_CODE (type) == NAMESPACE_DECL)
{
+ /* 'name' already refers to the decls from the namespace, since we
+ hit do_identifier for template_ids. */
my_friendly_assert (is_overloaded_fn (TREE_OPERAND (name, 0)), 980519);
return build_x_function_call (name, parmlist, current_class_ref);
}